Function

addKaboom

(pos: Vec2, opt?: BoomOpt): GameObj

Add an explosion effect.

param pos- The position of the explosion.

param opt- The options for the explosion.

onMousePress(() => {
    addKaboom(mousePos());
});

returns The explosion object.

since v2000.0

group Misc

kaplay logo

Layer

Miscalenous