mirror of
https://github.com/wassname/phaser.git
synced 2026-08-09 12:20:34 +08:00
Fixed daft issue in Camera and fully implemented tilemap collision.
This commit is contained in:
@@ -237,9 +237,8 @@ module Phaser {
|
||||
if (Collide > 0)
|
||||
{
|
||||
particle.allowCollisions = Collision.ANY;
|
||||
particle.elasticity = Collide;
|
||||
//particle.width *= Collide;
|
||||
//particle.height *= Collide;
|
||||
particle.width *= Collide;
|
||||
particle.height *= Collide;
|
||||
//particle.centerOffsets();
|
||||
}
|
||||
else
|
||||
|
||||
@@ -22,6 +22,7 @@ module Phaser {
|
||||
|
||||
this.lifespan = 0;
|
||||
this.friction = 500;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -97,8 +97,6 @@ module Phaser {
|
||||
|
||||
this.generateTiles(tileQuantity);
|
||||
|
||||
console.log('generate layer csv');
|
||||
|
||||
}
|
||||
|
||||
private parseTiledJSON(data: string, key: string) {
|
||||
@@ -136,7 +134,6 @@ module Phaser {
|
||||
layer.addColumn(row);
|
||||
c = 0;
|
||||
}
|
||||
console.log('generate layer json');
|
||||
}
|
||||
|
||||
layer.updateBounds();
|
||||
|
||||
Reference in New Issue
Block a user