Class: Core::Game::Combat::Background
- Defined in:
- lib/game/combat/battle.rb
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(file, color = nil) ⇒ Background
constructor
A new instance of Background.
- #update ⇒ Object
Constructor Details
#initialize(file, color = nil) ⇒ Background
Returns a new instance of Background.
83 84 85 86 87 88 89 90 |
# File 'lib/game/combat/battle.rb', line 83 def initialize(file, color=nil) @sprite = Core.sprite("backgrounds/#{file}") if !color @color = Gosu::Color::WHITE else @color = color end end |