на весь экран
This commit is contained in:
@@ -4,6 +4,13 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
<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>
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script src="игра/001.мир.js"></script>
|
<script src="игра/001.мир.js"></script>
|
||||||
|
|||||||
@@ -35,8 +35,15 @@ align-items: center;
|
|||||||
type: Phaser.AUTO,
|
type: Phaser.AUTO,
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
parent: мир.областьОтрисовки,
|
|
||||||
backgroundColor: 0xfbfbfb,
|
backgroundColor: 0xfbfbfb,
|
||||||
|
scale: {
|
||||||
|
width: 800,
|
||||||
|
height: 600,
|
||||||
|
parent: мир.областьОтрисовки,
|
||||||
|
expandParent: true,
|
||||||
|
mode: Phaser.Scale.ENVELOP,
|
||||||
|
autoCenter: Phaser.Scale.CENTER_BOTH,
|
||||||
|
},
|
||||||
physics: {
|
physics: {
|
||||||
default: "arcade",
|
default: "arcade",
|
||||||
arcade: {
|
arcade: {
|
||||||
|
|||||||
Reference in New Issue
Block a user