Class: BrandScene

Inherits:
GameScene show all
Defined in:
lib/templates/game/scenes/brand_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, #update, #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

#transition_to_brand_to_titleObject



13
14
15
16
17
# File 'lib/templates/game/scenes/brand_scene.rb', line 13

def transition_to_brand_to_title
  animate :brand, to: { alpha: 0 }, interval: 1.second do
    transition_to :brand_to_title
  end
end