A cabin warms up while the fire burns and cools when the wood runs out
A survival horror night in the cold needs a temperature that reacts to the fire, slowly and the same on every machine. Here is how the warmth follows the logs, what happens when the fire dies in the middle of one frame, and why it must not jump.
Why this works
Warmth moves toward its goal quickly when far away and slowly when near, as in a real room. Computing it that way makes the result the same however the frames are cut, and splitting a step at the moment the fire dies keeps the change honest.
When not to use it
Leave it out when temperature is only a label, such as a game with a simple warm or cold zone. Also avoid it if the player needs an exact time for a puzzle, where a gradual curve is harder to read than a plain countdown.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 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 cabin warms up while the fire burns and cools when the wood runs out" (read_entry narr-cabin-fire-warmth-curve) 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