Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,13 @@ var gameOver = false;
|
|
43 |
var scoreText;
|
44 |
|
45 |
var game = new Phaser.Game(config);
|
46 |
-
|
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');
|