Class: FirstScene

Inherits:
GameScene show all
Defined in:
lib/templates/game/scenes/first_scene.rb

Constant Summary

Constants included from Metro::Units

Metro::Units::Bounds

Instance Attribute Summary

Attributes inherited from Metro::Scene

#window

Instance Method Summary collapse

Methods inherited from GameScene

#fade_in_and_out

Methods inherited from Metro::Scene

#_prepare_transition, #actor, #add_actors_to_scene, #after, after, #after_initialize, after_intervals, #base_draw, #base_update, #draw, #drawers, #enqueue, hierarchy, inherited, #initialize, metro_name, #notification, #prepare_transition_from, #prepare_transition_to, #register_actor, #register_actors!, #register_after_intervals!, #register_animations!, #register_events!, #register_events_for_target, scene_name, #scene_name, scenes, #show, #state, #to_hash, #to_s, #transition_to, #updaters

Methods included from Metro::SceneView

included, #save_view, #view, #view_content, #view_name

Methods included from Metro::HasAnimations

#animate, included

Methods included from Metro::HasEvents

included

Methods included from Metro::Draws

included

Constructor Details

This class inherits a constructor from Metro::Scene

Instance Method Details

#updateObject



24
25
26
# File 'lib/templates/game/scenes/first_scene.rb', line 24

def update
  hero.position = Point.new (hero.x % Game.width), (hero.y % Game.height)
end