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
+1 -1
View File
@@ -632,7 +632,7 @@ module Phaser {
*/
public execute(): bool {
console.log('quadtree execute');
//console.log('quadtree execute');
var overlapProcessed: bool = false;
var iterator: LinkedList;
+1 -1
View File
@@ -127,7 +127,7 @@ module Phaser {
if (tempBounds.intersects(object.bounds))
{
result.push(true);
result.push(Collision.separateTile(object, { x: tempBounds.x, y: tempBounds.y, width: tempBounds.width, height: tempBounds.height, mass: 1.0, immovable: true, allowCollisions: Collision.ANY }));
}
else
{
+2 -2
View File
@@ -34,9 +34,9 @@ module Phaser {
if (typeof keycode === 'object')
{
for (var code in keycode)
for (var i:number = 0; i < keycode.length; i++)
{
this._capture[code] = true;
this._capture[keycode[i]] = true;
}
}
else