Bomb
Overview
A bomb is an entity that explodes after a few seconds.
You can create this type of map entity only dynamically with map:create_bomb()
. It cannot be declared in the map data file.
Historical Feature
Bomb entities exist for historical reasons and are not very customizable. In new projects, we recommend to use custom entities instead.
A bomb can be lifted by the hero before it explodes. When it explodes, it is removed from the map, a new entity of type explosion is created at the same position and the sound "explosion"
is played.
If a bomb is placed on a stream, it follows a movement corresponding to this stream.
Methods Inherited from map entity
Bombs are particular map entities. Therefore, they inherit all methods from the type map entity.
See entity to know these methods.
Methods of the type bomb
None.
Events inherited from map entity
Events are callback methods automatically called by the engine if you define them.
Bombs are particular map entities. Therefore, they inherit all events from the type map entity.
See entity to know these events.
Events of the type bomb
None.