cstoquer / pixelbox

A sandbox framework to fast-prototype tile-based games in HTML5 and JavaScript
MIT License
470 stars 36 forks source link

how to make collision? #24

Open CactiWasHere opened 3 years ago

andrewhoyer commented 2 years ago

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.