Spielerando

My idle game pays out wrong after the player has been away

Players close the app, come back later and expect fair earnings. Too generous and the game is trivial; set the phone clock backwards and forwards and it breaks. Here is the small calculation your AI should use for the away time, and what it must remember between visits.

Why this works

A device clock is only a claim, not a fact. So the away time is treated as a request that is limited, paid at a lower rate and never allowed to move the saved moment backwards. That way a wrong clock can cost the game only a little.

When not to use it

Skip it when the game has real money, a shared ranking or other players' progress at stake, because a phone clock can always be faked. Keep the time on a server there, and let the phone ask for the payout instead of working it out.

In the full entry

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

Say this to your AI

Use the Spielerando entry "My idle game pays out wrong after the player has been away" (read_entry idle-game-offline-earnings-cap-and-clock-guard) 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