I’ve seen this question pop up a few times on the forums so I’d figure I’d take a shot at giving some examples of my experiences handling game logic with BabylonJS and TypeScript.
Because Babylon is so unopinionated you’re pretty well left to your own devices when it comes to deciding how to structure your game logic. Not that this is a bad thing but it did lead me to trying out a few different systems to see what I liked.
So here they are: a simplified, completely subjective look at different architectures. I hope they help: