Browse Source

на весь экран

master
parent
commit
bacfd2174c
2 changed files with 15 additions and 1 deletions
  1. +7
    -0
      index.html
  2. +8
    -1
      игра/011.phaser.js

+ 7
- 0
index.html View File

@@ -4,6 +4,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>КОЛОБОК 0.1.0</title>
<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>
<body>
<script src="игра/001.мир.js"></script>


+ 8
- 1
игра/011.phaser.js View File

@@ -35,8 +35,15 @@ align-items: center;
type: Phaser.AUTO,
width: 800,
height: 600,
parent: мир.областьОтрисовки,
backgroundColor: 0xfbfbfb,
scale: {
width: 800,
height: 600,
parent: мир.областьОтрисовки,
expandParent: true,
mode: Phaser.Scale.ENVELOP,
autoCenter: Phaser.Scale.CENTER_BOTH,
},
physics: {
default: "arcade",
arcade: {


Loading…
Cancel
Save