Updated intersects code, tilemap collision is running again. Still finding gravity pushing sprites through tiles.

This commit is contained in:
photonstorm
2014-01-28 06:52:56 +00:00
parent 9deb5514a2
commit 82cb66f47b
6 changed files with 270 additions and 278 deletions
+2 -4
View File
@@ -43,9 +43,7 @@ function collisionHandler (obj1, obj2) {
function render() {
// game.debug.renderBodyInfo(sprite1, 16, 16);
game.debug.renderPolygon(sprite1.body.polygons);
game.debug.renderPolygon(sprite2.body.polygons);
game.debug.renderPhysicsBody(sprite1.body);
game.debug.renderPhysicsBody(sprite2.body);
}