Setting timers in simple games (feat. the frame rule)

Lately I’ve been reading the disassembled source code to Super Mario Bros. , and I learned that, in its code, events are scheduled for the future in much the same way I do it when making a quick game-jam game in Lua, such as o moku e mun . It’s so simple it’s barely a system! But I like how understandable-yet-flexible it is. I’ll describe it in Lua, for use in a PICO-8 or Picotron game. It’s two…