Added isometric tiles and scene

This commit is contained in:
2024-04-09 02:20:34 +02:00
parent c717ae64cc
commit 3fcd3e575e
6 changed files with 100 additions and 2 deletions

View File

@ -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>