walk on dbl click

This commit is contained in:
_Bastler 2022-01-27 14:58:16 +01:00
parent 08816ae80f
commit 55bb6fa930

View File

@ -27,7 +27,12 @@ export class GameSceneUserInputHandler implements UserInputHandlerInterface {
return; return;
} }
if (this.lastTime > 0 && pointer.time - this.lastTime < 500 && this.lastX == pointer.x && this.lastY == pointer.y) { if (
this.lastTime > 0 &&
pointer.time - this.lastTime < 500 &&
this.lastX == pointer.x &&
this.lastY == pointer.y
) {
const camera = this.gameScene.getCameraManager().getCamera(); const camera = this.gameScene.getCameraManager().getCamera();
const index = this.gameScene const index = this.gameScene
.getGameMap() .getGameMap()