Class Spika
Parent: Enemy
Spikas are big, rolling balls armed with spikes. They follow Alex and try to overroll him. Big spikas tend to block paths, so you somehow need to make them move away. The default spika is not resistant to fire or ice, so you may want to change that using the apropriate methods from the Enemy class.
Class Methods
new
new() → a_spika
Create a new spika enemy with the default values.
Instance Methods
color
color() → a_symbol
Returns the spika’s current color. See #color= for possible return values.
color=
color= ( color ) → color
Specifies the color/type of this spika.
Parameters
- color
-
The spika’s new color. One of the following symbols: :orange, :green, :grey, :red.