Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,9 @@ const game = new Phaser.Game(config);
|
|
46 |
//const menu = document.querySelector('#demo');
|
47 |
|
48 |
//menu.appendChild = game
|
|
|
|
|
|
|
49 |
|
50 |
function preload ()
|
51 |
{
|
@@ -204,7 +207,6 @@ function hitBomb (player, bomb)
|
|
204 |
|
205 |
gameOver = true;
|
206 |
}
|
207 |
-
document.getElementById('demo').innerHTML = game
|
208 |
|
209 |
}
|
210 |
}
|
|
|
46 |
//const menu = document.querySelector('#demo');
|
47 |
|
48 |
//menu.appendChild = game
|
49 |
+
const test_div = document.createElement("div");
|
50 |
+
test_div.innerHTML= game;
|
51 |
+
document.body.appendChild(test_div);
|
52 |
|
53 |
function preload ()
|
54 |
{
|
|
|
207 |
|
208 |
gameOver = true;
|
209 |
}
|
|
|
210 |
|
211 |
}
|
212 |
}
|