Skip to content
Snippets Groups Projects
Commit e1ef339e authored by Magnus Segtnan Skjølberg's avatar Magnus Segtnan Skjølberg
Browse files

(#18): add viewport to gamehud

parent 4702bff7
No related branches found
No related tags found
3 merge requests!51Resolve "Adjust cannon angle from touch input",!35Draft: Resolve "Adjust cannon angle from touch input",!32Combine hud with gameplay
......@@ -18,6 +18,8 @@ public class GameHud {
private Stage stage;
private Viewport viewport;
private Table table;
private Skin skin;
......@@ -37,6 +39,7 @@ public class GameHud {
private HorizontalGroup moveContainer;
public GameHud(Viewport viewport, SpriteBatch batch) {
this.viewport = viewport;
stage = new Stage(viewport, batch);
table = new Table();
......@@ -84,6 +87,10 @@ public class GameHud {
return stage;
}
public Viewport getViewport() {
return viewport;
}
public Skin getSkin() {
return skin;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment