scripts.nqp package

Subpackages

Submodules

scripts.nqp.command module

change_map()[source]
exit_game()[source]

Exit the game

get_element_rect(element_type: scripts.engine.internal.constant.UIElement)pygame.Rect[source]

Get the predefined rect for the specified element.

goto_character_select()[source]

Create a new game

goto_to_title()[source]

Quit out of the game back to the title screen

init_subscribers()[source]

Initialise event subscribers.

N.B. When init’d they are held in reference by the event hub and do not need to be referred to directly.

initialise_game()[source]

Init the game`s required info

load_game()[source]

Load existing game state

lose_game()[source]
register_actions()[source]

Register all Actions with the engine

start_game(player_data: scripts.engine.internal.definition.ActorData)[source]

Create a new game and show the gamemap

win_game()[source]

Trigger the win game actions

scripts.nqp.main module

game_loop()[source]

The core game loop, handling input, rendering and logic.

main()[source]

The entry for the game initialisation and game loop

Module contents