class EnemyMissile < Missile collides_as :enemy_missile def initialize opts super @color.alpha = 0 interpolate_alpha(:init => 0, :end => 255, :duration => 2.5) end def die super EnemyExplosion.new(:x => @x, :y => @y, :color => @color, :mode => :additive, :final_radius => @width*2.5, :duration => @width/20, :fade_after => (@width/20)*0.65) end end