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.
Conversation
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
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
Is there a language that can express concurrent, independent whenever-predicate? I’d subscribe to that newsletter.
3
I have a feeling reflex would be able to do something like that. It’s quite steep in terms of learning curve though.


