Commented code for testing purpose
This commit is contained in:
parent
7c4f626c5a
commit
04bb488797
@ -56,11 +56,11 @@ const updatePosition = (x: number, y: number) => {
|
||||
/**
|
||||
* Teleport: No animation, only if the distance is greater than the tile size / 1.5
|
||||
*/
|
||||
if (distance >= config.tile_size.x / 1.5) {
|
||||
// Teleport: No animation
|
||||
currentX.value = targetX
|
||||
currentY.value = targetY
|
||||
}
|
||||
// if (distance >= config.tile_size.x / 1.5) {
|
||||
// // Teleport: No animation
|
||||
// currentX.value = targetX
|
||||
// currentY.value = targetY
|
||||
// }
|
||||
|
||||
/**
|
||||
* Normal movement: Animate
|
||||
|
Loading…
x
Reference in New Issue
Block a user