Spaces:
Runtime error
Runtime error
Update game.html
Browse files
game.html
CHANGED
|
@@ -59,7 +59,7 @@ function preload ()
|
|
| 59 |
this.load.image('ground', platform_img);
|
| 60 |
this.load.image('star', star_img);
|
| 61 |
this.load.image('bomb', bomb_img);
|
| 62 |
-
this.load.spritesheet('dude', dude_img, {
|
| 63 |
}
|
| 64 |
function create ()
|
| 65 |
{
|
|
@@ -168,7 +168,7 @@ function hitBomb (player, bomb)
|
|
| 168 |
this.events.off();
|
| 169 |
|
| 170 |
});
|
| 171 |
-
|
| 172 |
this.input.on('pointerdown', () => this.scene.restart();
|
| 173 |
|
| 174 |
}
|
|
|
|
| 59 |
this.load.image('ground', platform_img);
|
| 60 |
this.load.image('star', star_img);
|
| 61 |
this.load.image('bomb', bomb_img);
|
| 62 |
+
this.load.spritesheet('dude', dude_img, {frameWidth: 32, frameHeight: 48 });
|
| 63 |
}
|
| 64 |
function create ()
|
| 65 |
{
|
|
|
|
| 168 |
this.events.off();
|
| 169 |
|
| 170 |
});
|
| 171 |
+
|
| 172 |
this.input.on('pointerdown', () => this.scene.restart();
|
| 173 |
|
| 174 |
}
|