mirror of
https://github.com/danbulant/heaventaker
synced 2026-07-06 19:50:37 +00:00
remove unnecesary logs
This commit is contained in:
parent
f6e737ac61
commit
836e64d23a
1 changed files with 0 additions and 2 deletions
|
|
@ -176,7 +176,6 @@ export class GameScene extends Phaser.Scene {
|
||||||
}
|
}
|
||||||
sprite.play(type);
|
sprite.play(type);
|
||||||
} else {
|
} else {
|
||||||
console.log("sprite", x, y, type);
|
|
||||||
sprite = this.add.sprite(x * this.map.px, y * this.map.px, type);
|
sprite = this.add.sprite(x * this.map.px, y * this.map.px, type);
|
||||||
item.animated = false;
|
item.animated = false;
|
||||||
}
|
}
|
||||||
|
|
@ -277,7 +276,6 @@ export class GameScene extends Phaser.Scene {
|
||||||
*/
|
*/
|
||||||
tryDestroy(toX, toY) {
|
tryDestroy(toX, toY) {
|
||||||
if(this.items[toX][toY].destroyable) {
|
if(this.items[toX][toY].destroyable) {
|
||||||
console.log("Destroying", toX, toY, this.items[toX][toY].sprite.x, this.items[toX][toY].sprite.y, this.items[toX][toY].sprite);
|
|
||||||
this.items[toX][toY].sprite.alpha = 0;
|
this.items[toX][toY].sprite.alpha = 0;
|
||||||
this.items[toX][toY].sprite.destroy();
|
this.items[toX][toY].sprite.destroy();
|
||||||
this.items[toX][toY] = null;
|
this.items[toX][toY] = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue