GitLab system status is available here and here

Commit 159ce9fd authored by Ankie Pon's avatar Ankie Pon
Browse files

test push

parent 9c712c27
......@@ -2,6 +2,14 @@ class Menu extends Phaser.Scene {
constructor() {
super("menuScene");
}
preload() {
// load audio
this.load.audio('sfx_select', './assets/blip_select12.wav');
this.load.audio('sfx_explosion', './assets/explosion38.wav');
this.load.audio('sfx_rocket', './assets/rocket_shot.wav');
}
create() {
this.add.text(20, 20, "Rocket Patrol Menu");
this.scene.start("playScene");
......
......@@ -66,7 +66,7 @@ class Play extends Phaser.Scene {
//60 second play clock
scoreConfig.fixedWidth = 0;
this.clock = this.time.delayedCall(3000, () => {
this.clock = this.time.delayedCall(60000, () => {
this.add.text(game.config.width/2, game.config.height/2, 'GAME OVER', scoreConfig).setOrigin(0.5);
this.add.text(game.config.width/2, game.config.height/2 + 64, 'Press (R) to Restart', scoreConfig).setOrigin(0.5);
this.gameOver = true;
......@@ -135,5 +135,7 @@ class Play extends Phaser.Scene {
//scpre add and repaint
this.p1Score += ship.points;
this.scoreLeft.text = this.p1Score;
this.sound.play('sfx_explosion');
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment