News for hackers. Stuff that matters.
Re:A kids traffic mat in Elm by hombre_fatal on Sunday May 19, 2024 @01:05PM (#40408244)
This is really polished. It's one thing to make cars drive around a city, but really cool to also make them go into and exit parking.

I've done some basic game dev in Elm and was surprised how nice it was. In one game, I had melee fighters moving around a map fighting each other. Much later I came back to add a projectile class.

Having not touched the game code in months, adding an archer was a matter of adding an `Archer` model (with archer specific state) to an enum and then following the errors until I'd handled the archer at every switch site in the code. It blew my mind that I had a working archer system without even running the code once and without having to reload the whole code base into my head.

There are no comments on this comment yet.