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 sound bank variation

Problem it solves

You want to play random sounds from a list while also introducing subtle pitch shifts each time.

What this block does

Picks a random sound from a list and synthesizes a tone with pitch jitter applied.

The block

Block ID: retro_sound_bank_var

play sound bank $sounds pitch variation $variation block

Parameters

NameTypeDefaultMeaning
soundsRetro.Sounds[][Retro.Sounds.EnemyHit]A list of sound effects to choose from.
variationnumber20Maximum pitch jitter offset applied to the sound.

Example

Retro.playSoundBankVariation([Retro.Sounds.EnemyHit, Retro.Sounds.BreakBlock], 30)

Add the extension

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