Can anyone recommend a game framework or engine, for any language, that you’ve found leads to particularly nice code? I’m writing a tool whose main purpose is prototyping games & interactive media, and I’m interested in studying APIs that game devs find particularly usable.
-
Show this thread
-
The tool in question is an event-oriented imperative programming language which has built-in graphics, input, audio, &c. via SDL2. I intend to put game framework–like functionality in the standard library.
1 reply 0 retweets 0 likesShow this thread -
By “event-oriented” I mean that everything is reactive & concurrent. Some example code: for all b in (bullets) { whenever (colliding (b, player)) { player.health <- player.health - b.power; destroy (b); } } when (player.health <= 0) { game_over (); }
2 replies 0 retweets 0 likesShow this thread -
Replying to @whyevernotso
Is there a language that can express concurrent, independent whenever-predicate? I’d subscribe to that newsletter.
3 replies 0 retweets 0 likes -
Replying to @warrenm
You can look at the old C++ implementation¹ (pull-based semantics—checks every event condition every step) or the in-progress Haskell rewrite² (push-based—only checks conditions that depend on variables that were changed). ¹ https://github.com/evincarofautumn/hap … ²https://github.com/evincarofautumn/hap-hs …
1 reply 0 retweets 0 likes
There’s a lot happening beyond my ken here. Sober reflection required.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.