forked from noxious/client
Tile work
This commit is contained in:
33
src/App.vue
33
src/App.vue
@ -1,26 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import 'phaser';
|
||||
import { Game, Scene, Rectangle } from 'phavuer'
|
||||
import Example from './scenes/mapScene'
|
||||
|
||||
const gameConfig = {
|
||||
scale: {
|
||||
mode: Phaser.Scale.FIT,
|
||||
autoCenter: Phaser.Scale.CENTER_BOTH,
|
||||
width: 1280,
|
||||
height: 720,
|
||||
},
|
||||
render: {
|
||||
roundPixels: true,
|
||||
},
|
||||
pixelArt: true,
|
||||
type: Phaser.AUTO,
|
||||
scene: Example
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="game-container">
|
||||
<Game :config="gameConfig" class="game" />
|
||||
</div>
|
||||
</template>
|
||||
<!-- <Login />-->
|
||||
<Screen />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Screen from '@/components/game/Screen.vue'
|
||||
import Login from '@/components/screens/Login.vue'
|
||||
</script>
|
Reference in New Issue
Block a user