полный экран

This commit is contained in:
2021-04-17 15:09:38 +03:00
parent 17c71c54a4
commit ab15adae28
2 changed files with 11 additions and 23 deletions

View File

@@ -5,30 +5,20 @@
<title>КОЛОБОК 0.1.0</title>
<script src="https://cdn.jsdelivr.net/npm/phaser@3.54.0/dist/phaser.min.js"></script>
<style>
html, body {
margin: 0;
padding: 0;
}
body {
height: 100vh;
width: 100vw;
}
#родитель
{
width: 100%;
height: 100%;
/*
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
*/
background-color: red;
}
html
{
background-color: blue;
margin: 0;
height: 100%;
}
body
{
background-color: green;
margin: 0;
height: 100%;
}
</style>
</head>

View File

@@ -17,9 +17,7 @@
width: 800,
height: 600,
parent: document.getElementById("родитель"),
//mode: Phaser.Scale.ENVELOP,
//mode: Phaser.Scale.RESIZE,
mode: Phaser.Scale.FIT,
mode: Phaser.Scale.ENVELOP,
autoCenter: Phaser.Scale.CENTER_BOTH,
},
physics: {