Class TunnelGameArea

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

public class TunnelGameArea extends GameArea
Tunnel room: minimal walls with left door back to Server Room.
  • Constructor Details

  • Method Details

    • create

      public void create()
      Creates the tunnel room with the following steps: - Loads background with GenericLayout methods - spawns the borders and doors - spawns the player in and - spawns the platforms and spawn pads - spawns 2 grok droids as enemies - spawns the floor overlay - spawns items using the ItemSpawner and the tunnelmap configuration
      Specified by:
      create in class GameArea
    • toString

      public String toString()
      Overrides:
      toString in class GameArea
    • getPlayer

      public Entity getPlayer()
      Description copied from class: GameArea
      allows manipulation of player character by loading function
      Specified by:
      getPlayer in class GameArea
      Returns:
      player entity
    • load

      public static TunnelGameArea load(TerrainFactory terrainFactory, CameraComponent camera)