Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ var gameOver = false;
|
|
43 |
var scoreText;
|
44 |
|
45 |
var game = new Phaser.Game(config);
|
46 |
-
document.
|
47 |
|
48 |
function preload ()
|
49 |
{
|
@@ -222,7 +222,7 @@ with gr.Blocks() as app:
|
|
222 |
</head>
|
223 |
<body>
|
224 |
<button type="testButton" onclick="testFn()"> Start </button>
|
225 |
-
<div></div>
|
226 |
</body>
|
227 |
</html>""")
|
228 |
|
|
|
43 |
var scoreText;
|
44 |
|
45 |
var game = new Phaser.Game(config);
|
46 |
+
document.getElementById('demo').innerHTML = game
|
47 |
|
48 |
function preload ()
|
49 |
{
|
|
|
222 |
</head>
|
223 |
<body>
|
224 |
<button type="testButton" onclick="testFn()"> Start </button>
|
225 |
+
<div id="demo"></div>
|
226 |
</body>
|
227 |
</html>""")
|
228 |
|