I was to restructure my game, because I want to add more physics and make in HC is equal to use box2d module.
I use windfield library to administrate the world and check the collisions, also collisions class is a good option for my game.
The problem is the performance, becausa my game in HC require only 30 or 40 kb of memory, but with box2d memory is very more, like 120kb.
Any way to limite the logic for only bodies into camera, and sleep others to liberate memory?
I used this function but doesn't work.
Code: Select all
body:setActive( false )
Update : ASDW to move player box