News for hackers. Stuff that matters.
Re:24a2: An ultra-minimalist game engine by tootie on Saturday June 27, 2020 @08:54PM (#23665940)
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.
Re:24a2: An ultra-minimalist game engine by setr on Sunday June 28, 2020 @01:34AM (#23666941)
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).
Re:24a2: An ultra-minimalist game engine by fao_ on Saturday June 27, 2020 @09:37PM (#23666148)
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.