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

Add an explosion effect.

parampos- The position of the explosion.

paramopt- The options for the explosion.

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

returnsThe explosion object.

sincev2000.0

kaplay logo

Misc

Layer