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.

play laser

Problem it solves

Your spaceship fires laser bolts and you need a snappy downward pitch blaster sound.

What this block does

Plays a downward pitch sweep synthesizer effect to mimic retro arcade lasers.

The block

Block ID: retro_laser

play laser intensity %intensity||start pitch %startPitch end pitch %endPitch block

Parameters

NameTypeDefaultMeaning
intensitynumber4Laser sound power scaling volume.
startPitchnumber1200Optional starting frequency in Hertz.
endPitchnumber300Optional ending frequency in Hertz.

Example

Retro.playLaser(5, 1400, 250)

Add the extension

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