полный экран
This commit is contained in:
16
index.html
16
index.html
@@ -5,15 +5,25 @@
|
|||||||
<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
|
html, body {
|
||||||
{
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
#родитель
|
||||||
|
{
|
||||||
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="родитель"></div>
|
||||||
<script src="игра/001.мир.js"></script>
|
<script src="игра/001.мир.js"></script>
|
||||||
<script src="игра/011.phaser.js"></script>
|
<script src="игра/011.phaser.js"></script>
|
||||||
<script src="игра/109.управление.js"></script>
|
<script src="игра/109.управление.js"></script>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
scale: {
|
scale: {
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
expandParent: true,
|
parent: document.getElementById("родитель"),
|
||||||
mode: Phaser.Scale.ENVELOP,
|
mode: Phaser.Scale.ENVELOP,
|
||||||
autoCenter: Phaser.Scale.CENTER_BOTH,
|
autoCenter: Phaser.Scale.CENTER_BOTH,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user