Class: PlayerMissile
Instance Method Summary collapse
- #die ⇒ Object
-
#initialize(opts) ⇒ PlayerMissile
constructor
A new instance of PlayerMissile.
Methods inherited from Missile
#align_to, #collision_radius, #draw, #save_init_pos, #update
Constructor Details
#initialize(opts) ⇒ PlayerMissile
Returns a new instance of PlayerMissile.
4 5 6 7 |
# File 'lib/player_missile.rb', line 4 def initialize opts super interpolate_alpha(:init => 0, :end => 255, :duration => 1, :on_stop => :complete) end |
Instance Method Details
#die ⇒ Object
9 10 11 12 |
# File 'lib/player_missile.rb', line 9 def die super PlayerExplosion.new(:x => @x, :y => @y, :color => @color, :mode => :additive) end |