1
0
forked from noxious/client

Updated game config for hopefully less image quality loss

This commit is contained in:
2024-09-28 21:23:47 +02:00
parent 9e96b2b32a
commit 494576b284
2 changed files with 5 additions and 7 deletions

View File

@ -6,7 +6,7 @@ import config from '@/config'
export function useGamePointerHandlers(scene: Phaser.Scene, layer: Phaser.Tilemaps.TilemapLayer, waypoint: Ref<{ visible: boolean; x: number; y: number }>, camera: Phaser.Cameras.Scene2D.Camera) {
const gameStore = useGameStore()
const lastDragTime = ref(0)
const dragTimeout = 500 // 500ms timeout for dragging, to prevent accidental clicks
const dragTimeout = 100 // 100ms timeout for dragging, to prevent accidental clicks
function updateWaypoint(pointer: Phaser.Input.Pointer) {
const { x: px, y: py } = camera.getWorldPoint(pointer.x, pointer.y)