Class: Scene_BHell

BHell.Scene_BHell()

new Scene_BHell()

Bullet hell minigame main scene class. Handles the user input and displays every minigame's object on screen.

Source:

Methods

acceptSelection(cmd)

Accept command, invoked by the confirmation window's "yes" option.

Parameters:
Name Type Description
cmd

The command to be confirmed ("retry" or "quit").

Source:

cacheSprites()

Caches all the sprites required for the stage.

Source:

createHUD()

Creates the HUD (the score sprite and a life template).

Source:

createWindows()

Creates the windows displayed on pause.

Source:

isReady() → {boolean|Boolean}

Checks if the scene is ready to run and executes the callbacks.

Source:
Returns:

True if the map was loaded and the sprites were cached.

Type
boolean | Boolean

loadMap()

Fetches the map's data.

Source:

onBlur(event)

On blur event handler. If the window looses focus, pause the game.

Parameters:
Name Type Description
event

Blur event.

Source:

onMapLoaded()

Callback executed on map loaded. Sets up the spriteset, the controller, the windows and the HUD.

Source:

onTouchOutside(event)

On touch start event handler. If a touch begins outside the game canvas, pause the game.

Parameters:
Name Type Description
event

TouchEvent.

Source:

pause()

Stops the gameplay and opens the pause window.

Source:

quit()

Quit command, invoked by the pause window's fifth option. Asks for confirmation.

Source:

resume()

Resume command, invoked by the pause window's first option. Resumes the game.

Source:

retry()

Retry command, invoked by the pause window's second option. Asks for confirmation.

Source:

setDeadzone()

Deadzone command, invoked by the pause window's third option.

Source:

setSpeed()

Speed command, invoked by the pause window's fourth option.

Source:

undo()

Undo command, invoked by the confirmation window's "no" option.

Source:

update()

Updates the scene. If the game is playing, it checks the user inputs and updates the controller and the HUD, otherwise it terminates the minigame, returning to Scene_Map.

Source:

updateHUD()

Updates the HUD (number of lives, number of bombs and score). For a more dynamic "effect", the score is added "slowly" with small increments.

Source:

updateInput()

Handles the user input. Left mouse or "ok" button: shoot, Right mouse or "shift" button: launch bomb, Any click (left or right) or arrow keys: move the player, "Escape" button: toggle pause.

Source: