Omnibus commited on
Commit
a7f7491
1 Parent(s): f3f58a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -42,11 +42,13 @@ var score = 0;
42
  var gameOver = false;
43
  var scoreText;
44
 
45
- var game = new Phaser.Game(config);
 
 
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
  }