Top Level Namespace

Defined Under Namespace

Modules: ExampleApp, Zif

Instance Method Summary collapse

Instance Method Details

#tick(args) ⇒ Object

This is the tick method required for the ExampleApp in the top level namespace, from app/main.rb



8
9
10
11
12
13
14
15
# File 'app/main.rb', line 8

def tick(args)
  if args.tick_count == 2
    $game = ExampleApp::ZifExample.new
    $game.scene.prepare_scene # Need this here because it references $game
  end

  $game&.perform_tick
end