Tilemap collision working but needs speeding up

This commit is contained in:
Richard Davey
2013-04-25 20:05:56 +01:00
parent b8ab13fec8
commit b2e1434f5e
1336 changed files with 277759 additions and 6786 deletions
+2 -5
View File
@@ -224,16 +224,13 @@ module Phaser {
{
if (objectOrGroup.exists && objectOrGroup.allowCollisions != Collision.NONE)
{
// Get the tiles this object overlaps with (could be any number based on its width/height)
// Iterate through each tile, checking if it overlaps with the object bounds
// Yes? then separate, else abort
this.currentLayer.getTileOverlaps(objectOrGroup);
}
}
else
{
// todo
objectOrGroup.forEachAlive(this.currentLayer.getTileOverlaps);
}
return true;