полный экран

This commit is contained in:
2021-04-17 15:09:23 +03:00
parent 4fe048c23a
commit f52a787ef0
2 changed files with 14 additions and 4 deletions

View File

@@ -5,15 +5,25 @@
<title>КОЛОБОК 0.1.0</title>
<script src="https://cdn.jsdelivr.net/npm/phaser@3.54.0/dist/phaser.min.js"></script>
<style>
html, body
{
html, body {
margin: 0;
padding: 0;
}
body {
height: 100vh;
width: 100vw;
}
#родитель
{
width: 100%;
height: 100%;
overflow: hidden
}
</style>
</head>
<body>
<div id="родитель"></div>
<script src="игра/001.мир.js"></script>
<script src="игра/011.phaser.js"></script>
<script src="игра/109.управление.js"></script>

View File

@@ -16,7 +16,7 @@
scale: {
width: 800,
height: 600,
expandParent: true,
parent: document.getElementById("родитель"),
mode: Phaser.Scale.ENVELOP,
autoCenter: Phaser.Scale.CENTER_BOTH,
},