forked from noxious/client
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 Player from '@/components/sprites/player/Player.vue'
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
import type { Ref } from 'vue'
|
import type { Ref } from 'vue'
|
||||||
import GameObject = Phaser.GameObjects.GameObject
|
|
||||||
import Layer = Phaser.GameObjects.Layer
|
import Layer = Phaser.GameObjects.Layer
|
||||||
import Tileset = Phaser.Tilemaps.Tileset
|
import Tileset = Phaser.Tilemaps.Tileset
|
||||||
|
|
||||||
@ -33,7 +32,7 @@ scene.cameras.main.scrollY = - map.heightInPixels / 2;
|
|||||||
|
|
||||||
console.log(layer);
|
console.log(layer);
|
||||||
|
|
||||||
const tilemapLayer: Ref<GameObject|undefined> = refObj();
|
const tilemapLayer: Ref<TilemapLayer|undefined> = refObj();
|
||||||
|
|
||||||
const data = [
|
const data = [
|
||||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
|
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user