MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Retro FX

Add juicy 8-bit sound synthesizers, screen shakes, particle explosions, camera effects, and retro text displays to your games.

impact sparks

Problem it solves

A sword clashes against armor and you want bright sparks bursting out at the point of impact.

What this block does

Generates custom multi-particle impact spark spreads with configurable lifetime and diameter.

The block

Block ID: retro_impact_sparks

impact sparks x $x y $y count $count for $t || amount of particles $particlesPerSecond | diamter $d block

Parameters

NameTypeDefaultMeaning
xnumber80X coordinate for spark burst.
ynumber60Y coordinate for spark burst.
countnumber6Number of particle wave iterations.
tnumber500Duration of the spark effect in milliseconds.
particlesPerSecondnumber8Optional particle emission rate.
dnumber50Optional effect diameter in pixels.

Example

Retro.impactSparks(80, 60, 4, 400, 10, 40)

Add the extension

Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.