Omnibus commited on
Commit
f3f58a5
1 Parent(s): 234b8a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -43,8 +43,13 @@ var gameOver = false;
43
  var scoreText;
44
 
45
  var game = new Phaser.Game(config);
46
- document.getElementById('demo').innerHTML = game
47
-
 
 
 
 
 
48
  function preload ()
49
  {
50
  this.load.image('sky', 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png');
 
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
+ }
53
  function preload ()
54
  {
55
  this.load.image('sky', 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png');