forked from noxious/client
hierrr
This commit is contained in:
parent
2799e32053
commit
8c9a4cd30d
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<Game />
|
||||
<Login />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
@ -17,6 +17,9 @@ const x: Ref<number> = ref(0);
|
||||
const y: Ref<number> = ref(0);
|
||||
|
||||
function onPointerClick(pointer: Phaser.Input.Pointer) {
|
||||
/**
|
||||
* @TODO : Check if player was dragging, if so, don't move player
|
||||
*/
|
||||
const px = scene.cameras.main.worldView.x + pointer.x;
|
||||
const py = scene.cameras.main.worldView.y + pointer.y;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user