Package com.csse3200.game.areas
Class TunnelGameArea
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.TunnelGameArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Tunnel room: minimal walls with left door back to Server Room.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.csse3200.game.areas.GameArea
GameArea.Bounds
-
Field Summary
Fields inherited from class com.csse3200.game.areas.GameArea
areaEntities, baseScaling, cameraComponent, isTransitioning, roomNumber, terrain, terrainFactory, wavesManager
-
Constructor Summary
ConstructorsConstructorDescriptionTunnelGameArea
(TerrainFactory terrainFactory, CameraComponent cameraComponent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 configurationallows manipulation of player character by loading functionstatic TunnelGameArea
load
(TerrainFactory terrainFactory, CameraComponent camera) toString()
Methods inherited from class com.csse3200.game.areas.GameArea
addSolidWallBottom, addSolidWallLeft, addSolidWallRight, addSolidWallTop, addVerticalDoorLeft, addVerticalDoorRight, beginTransition, clearAndLoad, dispose, endTransition, ensurePlayerAtlas, ensureTextures, getBaseDifficultyScale, getCameraBounds, getEnemySpawnPosition, getEntities, getRoomNumber, getRoomSpawnPosition, loadArea, removeEntity, setupTerrainWithOverlay, spawnDeepspin, spawnEnemies, spawnEntity, spawnEntityAt, spawnEntityInRoom, spawnFloor, spawnGhostGPT, spawnGhostGPTProjectile, spawnGrokDroid, spawnItem, spawnObjectDoors, spawnTurret, spawnVroomba, startWaves, unloadAssets
-
Constructor Details
-
TunnelGameArea
-
-
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 -
toString
-
getPlayer
Description copied from class:GameArea
allows manipulation of player character by loading function -
load
-