Example #1
0
  public GameScreen(Game game) {
    this.game = game;

    camera = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
    camera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
    batch = new SpriteBatch();
    // farm = new Farm();
    house = new House();
    house.x = 1000;
    house.y = 950;
    level = new Level();
    player = new Player();
    resource = new Resource();
  }