полный экран
This commit is contained in:
16
index.html
16
index.html
@@ -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>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
scale: {
|
||||
width: 800,
|
||||
height: 600,
|
||||
expandParent: true,
|
||||
parent: document.getElementById("родитель"),
|
||||
mode: Phaser.Scale.ENVELOP,
|
||||
autoCenter: Phaser.Scale.CENTER_BOTH,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user