Worked on map
This commit is contained in:
@ -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" />
|
||||
|
Reference in New Issue
Block a user