News for hackers. Stuff that matters.
Re:Beware anti patterns in event driven architecture by simonbw on Saturday June 08, 2024 @06:41PM (#40620676)
It's been an incredibly useful pattern for me in game development. I have a hard time imagining making a game with any level of complexity without it. You can definitely go overboard with it, but I have a hard time even imagining how some systems like collision detection/a physics engine could even work without it.
Re:Beware anti patterns in event driven architecture by ClimaxGravely on Sunday June 09, 2024 @12:57AM (#40622151)
That's generally been my experience as well.

However I've seen some frameworks where you can do collision imperatively. For example

if (sprite.collide(tilemap)) {do something}

These are generally on smaller less taxing frameworks (in this case I'm referring to haxeflixel) but they do exist!