Method: Core::Game::Combat::Background#initialize
- Defined in:
- lib/game/combat/battle.rb
#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 |