Generated footsteps on grass, leaves, gravel, snow, wood and concrete

movement.footstep(surface, seed) makes one footstep, and each seed gives a
slightly different step, so a game can register several and play them at
random. Every surface except grass is the heel landing and then the toe:

- leaves: bright crisp crackles that spread out, over a soft rustle.
- gravel: dozens of small stones knocking under the heel and toe, over a
  low grind.
- snow: a muffled crunch that gets denser as the foot packs it down.
- wood: a hollow knock with the boards ringing, and on some steps a creak.
- concrete: a hard heel and a scuff of grit on the toe.

Grass is one swish instead, with blades flicking off the shoe, as a foot
swings through. The loose surfaces are built from many tiny filtered
bursts of noise, and how many there are, how bright, and how they spread
over the step is what tells stones from snow or leaves. Each surface was
tuned by ear against how real footsteps sound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Storm DragonandClaude Opus 5.5 committed 2026-11-28 22:00:22 -05:00
1 parent 541a2d9007
commit 962f695226
6 files changed
+210 -5

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ The modules:
- vehicles: skids, and live voices for road surfaces and wind.
- ambience: loops such as bubbling, dripping and repeating patterns.
- alerts: live voices for warnings, falling screams, whistles and chattering.
- movement: a jump.
- movement: a jump, and footsteps on grass, leaves, gravel, snow, wood and concrete.
- music: looping background music pieces, each loaded only when a game asks for it.
Generated sounds need numpy and scipy. Nothing else in libstormgames imports