Minor change
This commit is contained in:
parent
82cfe5902f
commit
cfac1d508b
@ -34,7 +34,7 @@ import { MapStorage } from '@/storage/storages'
|
||||
import { useGameStore } from '@/stores/gameStore'
|
||||
import { useMapEditorStore } from '@/stores/mapEditorStore'
|
||||
import { Game, Scene } from 'phavuer'
|
||||
import { ref, watch } from 'vue'
|
||||
import { ref } from 'vue'
|
||||
|
||||
const mapStorage = new MapStorage()
|
||||
const mapEditor = useMapEditorComposable()
|
||||
@ -53,7 +53,7 @@ const gameConfig = {
|
||||
|
||||
const createGame = (game: Phaser.Game) => {
|
||||
// Resize the game when the window is resized
|
||||
addEventListener('resize', () => {
|
||||
window.addEventListener('resize', () => {
|
||||
game.scale.resize(window.innerWidth, window.innerHeight)
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user