This is a really cool tech demo! It took me a few minutes but I did manage to sort Space Turtle's socks. This makes me want to try using a physics engine in my next game, I'd love to know how you integrated the two. I don't suppose you'd consider releasing the source code?
Viewing post in Space Turtle's Laundry Day jam comments
Hi @pawprints, glad you enjoyed!
I kept it private as I wasn't sure if I might have time to go in and clean it up someday, but your comment inspired me to go ahead and make the repository public :)
https://github.com/hydrosquall/replay-engine-space-turtle
I'm not sure if what I did is truly in the spirit of the Replay engine's 1 place to modify all state philosophy (note that left the MatterJS world object as a global rather than having it get recopied in every round of the 60 FPS frame loop because I feared it might be expensive to copy), but it seems to have worked for a small game like this. I'll definitely be interested to see the results of your next physics experiment :)