полный экран
This commit is contained in:
30
К/index.html
30
К/index.html
@@ -5,30 +5,20 @@
|
|||||||
<title>КОЛОБОК 0.1.0</title>
|
<title>КОЛОБОК 0.1.0</title>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/phaser@3.54.0/dist/phaser.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/phaser@3.54.0/dist/phaser.min.js"></script>
|
||||||
<style>
|
<style>
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
#родитель
|
#родитель
|
||||||
{
|
{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -17,9 +17,7 @@
|
|||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
parent: document.getElementById("родитель"),
|
parent: document.getElementById("родитель"),
|
||||||
//mode: Phaser.Scale.ENVELOP,
|
mode: Phaser.Scale.ENVELOP,
|
||||||
//mode: Phaser.Scale.RESIZE,
|
|
||||||
mode: Phaser.Scale.FIT,
|
|
||||||
autoCenter: Phaser.Scale.CENTER_BOTH,
|
autoCenter: Phaser.Scale.CENTER_BOTH,
|
||||||
},
|
},
|
||||||
physics: {
|
physics: {
|
||||||
|
|||||||
Reference in New Issue
Block a user