Re-enabled the game screen
This commit is contained in:
parent
5741dbba42
commit
cc444b6a38
@ -18,11 +18,11 @@
|
||||
</Game>
|
||||
</div>
|
||||
<div v-if="zoneEditorStore.active">
|
||||
<!-- <Game :config="gameConfig" @create="createGame">-->
|
||||
<!-- <Scene name="main" @preload="preloadScene" @create="createScene">-->
|
||||
<!-- <ZoneEditor v-if="isLoaded" :key="zoneEditorStore.zone?.id ?? 0" />-->
|
||||
<!-- </Scene>-->
|
||||
<!-- </Game>-->
|
||||
<Game :config="gameConfig" @create="createGame">
|
||||
<Scene name="main" @preload="preloadScene" @create="createScene">
|
||||
<ZoneEditor v-if="isLoaded" :key="zoneEditorStore.zone?.id ?? 0" />
|
||||
</Scene>
|
||||
</Game>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -30,7 +30,7 @@
|
||||
<script setup lang="ts">
|
||||
import config from '@/config'
|
||||
import 'phaser'
|
||||
import { onUnmounted, watch, ref, onBeforeUnmount } from 'vue'
|
||||
import { watch, ref, onBeforeUnmount } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { Game, Scene } from 'phavuer'
|
||||
import { useGameStore } from '@/stores/game'
|
||||
@ -161,8 +161,4 @@ const createScene = (scene: Phaser.Scene) => {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// watch(() => zoneEditorStore.zone, () => {
|
||||
// isLoaded.value = false
|
||||
// }, {deep:true});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user