Worked on map

This commit is contained in:
2024-04-26 17:05:18 +02:00
parent 1851cc4782
commit c58b6012b9
5 changed files with 56 additions and 47 deletions

View File

@ -7,8 +7,7 @@ const gameConfig = {
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
width: 1280,
height: 720,
},
render: {
roundPixels: true,
@ -19,6 +18,20 @@ const gameConfig = {
}
</script>
<style>
.game-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
border: 1px solid white;
}
.game {
border: 1px solid red;
}
</style>
<template>
<div class="game-container">
<Game :config="gameConfig" class="game" />