Top

Secret Chronicles of the Scripting API documentation

Class Ball

Parent: MovingSprite

This class represents the fire and ice balls Alex is able to throw. With this class, you can generate these yourself on whatever conditions you want. Overriding the touch event you could even override the default behaviour.

Class Methods

new

new( type ) → a_ball

Creates a new ball.

Parameters

type

The type of the ball. Either :fire or :ice.

Instance Methods

ball_type

ball_type() → a_symbol

Returns the ball’s type. See ::new for a list of possible return values.

destroy_with_sound

destroy_with_sound()

Destroys the ball and plays the sound associated to this ball type’s destruction.