Class: OR2D::Scenes::PlaceholderScene
- Inherits:
-
OR2D::Scene
- Object
- OR2D::Scene
- OR2D::Scenes::PlaceholderScene
- Defined in:
- lib/or2d/scenes/placeholder_scene.rb
Overview
The PlaceholderScene class is a placeholder scene for the OR2D gem. When no other scenes are enqueued or displayed, this scene will be displayed.
Instance Attribute Summary
Attributes inherited from OR2D::Scene
Instance Method Summary collapse
-
#finish ⇒ Object
Complete processing of the scene.
-
#initialize ⇒ PlaceholderScene
constructor
Construct a new PlaceholderScene object.
Methods inherited from OR2D::Scene
#finished?, #redraw?, #render, #rendered?, #update
Constructor Details
#initialize ⇒ PlaceholderScene
Construct a new PlaceholderScene object.
6 7 8 9 10 11 12 |
# File 'lib/or2d/scenes/placeholder_scene.rb', line 6 def initialize super('PLACEHOLDER_SCENE') @cursor_position = OR2D::Entity.new(:text, { color: 'white', x: 0, y: 0, size: 16, height: 16, width: 16 }) setup_events setup_console end |