yeet
This commit is contained in:
parent
3d496c3057
commit
4ec7f9ad38
@ -4,7 +4,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { Sprite, useScene } from 'phavuer'
|
||||
import { ref } from 'vue'
|
||||
import { type Ref, ref } from 'vue'
|
||||
import config from '@/config'
|
||||
|
||||
const props = defineProps({
|
||||
@ -13,8 +13,8 @@ const props = defineProps({
|
||||
|
||||
const scene = useScene()
|
||||
const pointer_tile = ref(undefined);
|
||||
const x = ref(0);
|
||||
const y = ref(0);
|
||||
const x: Ref<number> = ref(0);
|
||||
const y: Ref<number> = ref(0);
|
||||
|
||||
function onPointerClick(pointer: Phaser.Input.Pointer) {
|
||||
const px = scene.cameras.main.worldView.x + pointer.x;
|
||||
|
Loading…
x
Reference in New Issue
Block a user