Top Level Namespace

Defined in:

Method Summary

Method Detail

def start_game(menu_text : String, starting_scene : Scene.class) #

Initializes the Menu and initial game State, and starts the game loop. The game will run until a Scene returns nil.

Example:

require "./engine/*"
start_game("My game is awesome!", FirstScene)

[View source]