Update app.py
Browse files
app.py
CHANGED
@@ -42,11 +42,13 @@ var score = 0;
|
|
42 |
var gameOver = false;
|
43 |
var scoreText;
|
44 |
|
45 |
-
|
|
|
|
|
46 |
function addNewElement() {
|
47 |
// creating new element
|
48 |
const newElement = document.createElement('div')
|
49 |
-
newElement.innerHTML = game
|
50 |
// adding a new element at the end of the body
|
51 |
document.body.appendChild(newElement)
|
52 |
}
|
|
|
42 |
var gameOver = false;
|
43 |
var scoreText;
|
44 |
|
45 |
+
const game = new Phaser.Game(config);
|
46 |
+
|
47 |
+
document.getElementById('demo').appendChild = game
|
48 |
function addNewElement() {
|
49 |
// creating new element
|
50 |
const newElement = document.createElement('div')
|
51 |
+
//newElement.innerHTML = game
|
52 |
// adding a new element at the end of the body
|
53 |
document.body.appendChild(newElement)
|
54 |
}
|