Skip to content

Commit

Permalink
Game World is resized, it's scaled down a fair bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Bell committed Feb 19, 2015
1 parent 9de5dad commit e7ff8aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/ca/michaelbell/screens/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ public GameScreen() {
float screenWidth = Gdx.graphics.getWidth();
float screenHeight = Gdx.graphics.getHeight();
float gameWidth = 1920;
float gameHeight = screenHeight / (screenWidth / gameWidth);
float gameHeight = screenHeight*gameWidth/screenWidth;

int midPointY = (int) (gameHeight / 2);
int midPointX = (int) (gameWidth / 2);


world = new GameWorld(midPointX, midPointY); // initialize world
renderer = new GameRenderer(world, (int) gameHeight, midPointY); // initialize renderer
renderer = new GameRenderer(world, (int) gameWidth, (int) gameHeight, midPointY); // initialize renderer
Gdx.input.setInputProcessor(new InputHandler(world.getPlayer()));
}

Expand Down

0 comments on commit e7ff8aa

Please sign in to comment.