Class ForestGameArea

java.lang.Object
com.deco2800.game.areas.GameArea
com.deco2800.game.areas.ForestGameArea
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public class ForestGameArea extends GameArea
Forest area for the demo game with trees, a player, and some enemies.
  • Field Details

  • Constructor Details

  • Method Details

    • nextLevel

      public void nextLevel()
    • create

      public void create()
      Create the game area, including terrain, static entities (trees), dynamic entities (player)
      Specified by:
      create in class GameArea
    • updatePlayerHealth

      public void updatePlayerHealth(int health)
    • spawnTimeConsumeableItem

      public void spawnTimeConsumeableItem()
    • spawnKey

      public void spawnKey(GdxGame game)
    • dispose

      public void dispose()
      Description copied from class: GameArea
      Dispose of all internal entities in the area
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class GameArea