Added isometric tiles and scene
This commit is contained in:
20
src/App.vue
20
src/App.vue
@ -1,8 +1,26 @@
|
||||
<script setup lang="ts">
|
||||
import Phaser from 'phaser';
|
||||
import { Game, Scene, Rectangle } from 'phavuer'
|
||||
import Example from './scenes/mapScene'
|
||||
|
||||
const gameConfig = {
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
pixelArt: true,
|
||||
type: Phaser.AUTO,
|
||||
scene: Example
|
||||
}
|
||||
|
||||
// isometric
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<Game :config="gameConfig">
|
||||
<Scene name="MainScene">
|
||||
<Rectangle :x="100" :y="100" :width="100" :height="100" :fillColor="0xAAAAAA" />
|
||||
</Scene>
|
||||
</Game>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
Reference in New Issue
Block a user