This commit is contained in:
Dennis Postma 2024-05-02 23:02:56 +02:00
parent 2799e32053
commit 8c9a4cd30d
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<Game />
<Login />
</template>
<script setup lang="ts">

View File

@ -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;