TS fix
This commit is contained in:
parent
cca0a799b2
commit
63a4448869
@ -8,7 +8,6 @@ import { refObj, TilemapLayer, useScene } from 'phavuer'
|
||||
import Player from '@/components/sprites/player/Player.vue'
|
||||
import config from '@/config'
|
||||
import type { Ref } from 'vue'
|
||||
import GameObject = Phaser.GameObjects.GameObject
|
||||
import Layer = Phaser.GameObjects.Layer
|
||||
import Tileset = Phaser.Tilemaps.Tileset
|
||||
|
||||
@ -33,7 +32,7 @@ scene.cameras.main.scrollY = - map.heightInPixels / 2;
|
||||
|
||||
console.log(layer);
|
||||
|
||||
const tilemapLayer: Ref<GameObject|undefined> = refObj();
|
||||
const tilemapLayer: Ref<TilemapLayer|undefined> = refObj();
|
||||
|
||||
const data = [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
|
||||
|
Loading…
x
Reference in New Issue
Block a user