Sha256: d140aa7948c2a1ed32c11bc37990c7a94b5885335fb765142a68569358ddc25e
Contents?: true
Size: 921 Bytes
Versions: 3
Compression:
Stored size: 921 Bytes
Contents
Global.setup_proc = nil Global.loop_proc = nil def on_presentation(&block) Global.presentation_proc = block end def on_game(&block) Global.game_proc = block end def on_end(&block) Global.end_proc = block end def on_setup(&block) Global.setup_proc = block end def on_loop(&block) Global.loop_proc = block end def on_button(&block) Global.button_proc = block end def on_space_bar(&block) Global.space_bar_proc = block end def on_cursor_up(&block) Global.cursor_up_proc = block end def on_cursor_down(&block) Global.cursor_down_proc = block end def on_cursor_left(&block) Global.cursor_left_proc = block end def on_cursor_right(&block) Global.cursor_right_proc = block end def on_mouse_button_left(&block) Global.mouse_button_left_proc = block end def on_mouse_button_right(&block) Global.mouse_button_right_proc = block end def start! Global.game = Game.new Global.game.show end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fantasy-0.1.3 | lib/fantasy/base.rb |
fantasy-0.1.1 | lib/fantasy/base.rb |
fantasy-0.1.0 | lib/fantasy/base.rb |