Skip to content

# Explosion

## Overview

This is an explosion whose sprite hurts the hero and enemies.

You can create this type of map entity only dynamically with `map:create_explosion()`. It cannot be declared in the map data file.

Historical Feature

Explosion entities exist for historical reasons and are not very customizable. In new projects, we recommend to use custom entities instead.

Explosions are automatically created by bombs that explode, and by dying enemies whose hurting style is `"boss"`.

Explosions hurt the hero and enemies that are sensible to them. But they may also blast doors and can be detected by sensors.

## Methods Inherited from map entity

Explosions are particular map entities. Therefore, they inherit all methods from the type map entity.

See entity to know these methods.

## Methods of the type explosion

None.

## Events inherited from map entity

Events are callback methods automatically called by the engine if you define them.

Explosions are particular map entities. Therefore, they inherit all events from the type map entity.

See entity to know these events.

## Events of the type explosion

None.

April 1, 2025