Hacker News new | ask | show | jobs
by tootie 2185 days ago
This framework is based on a game loop that runs an update on each frame which is more intended for real-time controls. I think a turn-based game like battleship is a different paradigm.
2 comments

You always have to update every frame -- UI, sounds, animations, etc -- the question is whether you update your game simulation every frame. But really, you don't want to link your simulation-updates to your frame updates anyways, real time or not, because then you get weird behaviors like different framerates producing different physics (I believe it was quake that famously let's you jump further if your framerate is higher).
afaik pretty much all games work like that on a deep level? And it's an industry standard for game engines to expose their interface in that way.

Anyway, it's in the README:

""24a2 can also run a function [...] when a dot is clicked on.""

So it would be pretty easy to make that.