This commit is contained in:
2025-12-14 12:36:46 +01:00
parent 0131f1490f
commit c3dd39e1a6
6 changed files with 1105 additions and 4 deletions

View File

@@ -222,9 +222,10 @@ class Player {
}
update(delta) {
if (this.isMoving) {
this.updateDepth();
}
// NOTE: updateDepth() disabled - using sortableObjects Z-sorting in GameScene
// if (this.isMoving) {
// this.updateDepth();
// }
if (!this.isMoving) {
this.handleInput();
@@ -506,7 +507,8 @@ class Player {
}
});
this.updateDepth();
// NOTE: updateDepth() disabled - using sortableObjects Z-sorting in GameScene
// this.updateDepth();
}
updatePosition() {