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 random sound from bank

Problem it solves

You want footsteps or sword swings to have audio variety so repeated actions do not sound repetitive.

What this block does

Selects and plays one random sound from an array of retro sound presets.

The block

Block ID: retro_sound_bank

play random sound from bank $sounds block

Parameters

NameTypeDefaultMeaning
soundsRetro.Sounds[][Retro.Sounds.Jump, Retro.Sounds.Land]A list of sound presets to pick from randomly.

Example

Retro.playSoundBank([Retro.Sounds.Jump, Retro.Sounds.DoubleJump, Retro.Sounds.WallJump])

Add the extension

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