ee
This commit is contained in:
parent
41d3f73e92
commit
7f3e7df6c3
@ -50,7 +50,7 @@ const updatePosition = (x: number, y: number) => {
|
||||
|
||||
const distance = Math.sqrt(Math.pow(targetX - currentX.value, 2) + Math.pow(targetY - currentY.value, 2))
|
||||
|
||||
if (distance > config.tile_size.x / 0.75) {
|
||||
if (distance > config.tile_size.x / 1.5) {
|
||||
// Teleport: No animation
|
||||
currentX.value = targetX
|
||||
currentY.value = targetY
|
||||
|
Loading…
x
Reference in New Issue
Block a user