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 custom sound

Problem it solves

You want to play a preset retro sound but need explicit control over its output volume and pitch frequency.

What this block does

Plays a retro sound preset alongside a custom chiptune tone synthesized at your chosen volume and pitch.

The block

Block ID: retro_custom_sound

play retro sound $sound volume $volume pitch $pitch block

Parameters

NameTypeDefaultMeaning
soundRetro.SoundsRetro.Sounds.LevelUpThe base retro sound preset.
volumenumber120The volume level (0 to 255).
pitchnumber600The audio pitch frequency in Hertz.

Example

Retro.playCustomSound(Retro.Sounds.LevelUp, 180, 880)

Add the extension

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