Spielerando

A heartbeat that speeds up with fear should not skip or double a beat

When fear rises, the heartbeat sound should quicken smoothly. A simple timer that restarts with each new speed stutters, drops beats or plays two at once. Here is the way to keep it steady and make the speed follow the fear without jumping.

Why this works

A beat belongs to a steady turning, not to a timer that is cut short each time the speed changes. By tracking how far through the beat you are and only changing how fast that goes, no part of a beat is lost or played twice.

When not to use it

Do not use it when the sound should be loose and irregular, like a panicked or sick heart, or when a fixed track of music sets the beat. Then play a prepared recording or random gaps on purpose.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 2 common mistakes and the fix
  • 21 lines of example code with 3 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "A heartbeat that speeds up with fear should not skip or double a beat" (read_entry narr-heartbeat-phase-no-skipped-beats) in my game. Build it step by step, and show me how you checked that it works.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP