There's no physics built in. You need to code collision detection in yourself, or add in another 2D framework that handles it. In all the games I've built with Pixelbox.js, I just check the positions of each sprite each frame and detect collisions that way.
There's no physics built in. You need to code collision detection in yourself, or add in another 2D framework that handles it. In all the games I've built with Pixelbox.js, I just check the positions of each sprite each frame and detect collisions that way.