diff options
author | elioat <elioat@tilde.institute> | 2024-12-27 08:19:00 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-12-27 08:19:00 -0500 |
commit | 73ae9acf92c4561868118a3fa38724c891ba0a8e (patch) | |
tree | 46b7d5caa2f42e3eb029ff8c9a573db05e1218ec /html/rogue/js/player.js | |
parent | 3a4c1117bfc0b902fdec41467bc6528d2f7a6f6d (diff) | |
download | tour-73ae9acf92c4561868118a3fa38724c891ba0a8e.tar.gz |
*
Diffstat (limited to 'html/rogue/js/player.js')
-rw-r--r-- | html/rogue/js/player.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/html/rogue/js/player.js b/html/rogue/js/player.js index e35db31..22e57e0 100644 --- a/html/rogue/js/player.js +++ b/html/rogue/js/player.js @@ -99,12 +99,11 @@ const player = { this.movementProgress += this.moveSpeed; if (this.movementProgress >= 1) { - // Movement to current target complete this.position = this.target; this.target = null; this.movementProgress = 0; + this.hasMoved = true; - // If there are more points in the path, move to the next one if (this.path.length > 0) { this.target = this.path.shift(); this.movementProgress = 0; |