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
“for all” is also intended to quantify over a container at all points in time: whenever an object is added to or removed from the container being observed, event listeners are added or removed accordingly.
1 reply 0 retweets 0 likes -
Replying to @whyevernotso
Indeed. Which means that said machinery implements a great deal of fidgety things we’d all love to abstract. But can/has it be/en done practicably?
1 reply 0 retweets 0 likes -
Replying to @warrenm
I don’t think it has; that’s why I’m writing Hap.
Basically, Hap = spreadsheets + equating variables with cells + executing code in response to changes.
I’ve heard good things about Rx <https://github.com/dotnet/reactive > but don’t know how similar it is. See also: FRP (e.g. netwire).1 reply 0 retweets 0 likes
Rx is pretty obviously (in my opinion, as expressed in extant UI frameworks, with high uncertainty) a dead end. I think FRP has ideas yet to be mined profitably.
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.