forked from noxious/client
Minor camera improvements
This commit is contained in:
@ -8,10 +8,12 @@ export function useCameraControls(scene: Phaser.Scene): any {
|
||||
const camera = scene.cameras.main
|
||||
|
||||
function onPointerDown(pointer: Phaser.Input.Pointer) {
|
||||
if (gameStore.isPlayerDraggingCamera) return
|
||||
gameStore.setPlayerDraggingCamera(true)
|
||||
}
|
||||
|
||||
function onPointerUp() {
|
||||
if (!gameStore.isPlayerDraggingCamera) return
|
||||
gameStore.setPlayerDraggingCamera(false)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user