DungeonCrawlerGame

ClubCrawler.Scenes. DungeonCrawlerGame

The main game containing the mapmanager, player, and input detection

Constructor

new DungeonCrawlerGame()

Source:
See:

Extends

  • Phaser.Scene

Members

cursors :Phaser.Types.Input.Keyboard.CursorKeys

Source:
See:

Listeners for arrow keys, space, and shift

Type:
  • Phaser.Types.Input.Keyboard.CursorKeys

mapManager :ClubCrawler.Parsers.BlueWorldParser

Source:

The map manager

Type:

player :ClubCrawler.Objects.Player

Source:

The player

Type:

Methods

checkWinCondition()

Source:

Checks if game is won whenever an enemy dies

Listens to Events:

create()

Source:

Creates game items needed.

preload()

Source:

Preloads assets

update(time, delta)

Source:

Updates items as needed. Checks for keyboard input.

Parameters:
Name Type Description
time number

total elapsed time

delta number

change in time since last update

validateGame()

Source:

Every few seconds, checks to make sure enemies and player are not out of bounds. If they are, it kills them.

win()

Source:

Called when an enemy died and there are no remaining enemies.