I’ve had a go at a game for PLAYHACK May and had some success in getting a basic framework going. See here: http://playcanv.as/p/LxkNoQ1D
I notice when profiling it though that if I remove all of the enemies and all of the hud it still allocates a lot of memory per frame (which is then Garbage Collected, but with a potential frame hiccup).
I’d say it looks like it might be related to physics, but again, it happens even if the only thing moving is my player.
Any insight into how I can do this better would be greatly appreciated!
For debugging I’ve tried the Chrome profiles and timeline, which shows me the allocation but I’m having a hard time tracking down what it actually is