Posted June 06, 2021 by actuallyalys <3
I'll doubtless be tweaking these features as I move on.
Behind the scenes, I also added Encompass, which has been really nice to work with. It did require some rewriting of existing code (mostly input handling), but it has left the code base easier to work with. I don't know that ECS (or MECS, I suppose) is The One True Way to architect video games, but it is One Good Way.
I also added logging (as in error log, not a logging company game mechanic). Ironically, my goal is that players don't see the logging because it means something went wrong. I'm pretty happy with how the logging works—it takes things I like from Python's logging module and Glögi, a Clojure(script) library I use for work, and puts them in a convenient package. I'd like to incorporate some ideas I got from Handmade Hero's debugging system, mainly performance counters.