Top

Secret Chronicles of the Scripting API documentation

Class Beetle

Parent: Enemy

Beetles are small bugs that are usually spit out from a Beetle Barrage. Using this class, you can do with them whatever you want.

Class Methods

new

new() → a_beetle

Creates a new instance of this class.

Return value

A new instance.

Instance Methods

color

color() → a_symbol

Returns the beetle’s current color as a symbol. See #color= for a list of possible return values.

color=

color=( color ) → color

Sets the color for the beetle.

Parameters

color

The beetle’s new color. One of the following symbols: :blue, :green, :red, :violet, :yellow.

rest_living_time

rest_living_time() → a_float

TODO: Docs.

rest_living_time=

rest_living_time=( time )

TODO: Docs.