Code edit (1 edits merged)
Please save this source code
User prompt
Let's add instructions to the bottom of the page that says diffuse the bomb by getting perfect timing at point zero zero ten times.
User prompt
Hide the final score on the Game Over pop-up.
User prompt
When you get a perfect score, the diffuse line should increment to 10 out of 10.
User prompt
It should also show the remaining time when you get a perfect score.
User prompt
It's not showing the you win text though either when you get a perfect score.
User prompt
Do you know why when you get a perfect score, it's not showing the you win screen with the award sound?
User prompt
Getting a perfect score will win the game for the player immediately.
User prompt
The timer should stop when the player wins the game, and display the remaining time.
User prompt
When all 10 fuses are diffused, the player wins the game.
User prompt
The player wins the game when all 10 fuses have been diffused.
User prompt
Player gets one fuse every time they get a hit.
User prompt
When the player gets a perfect timing, they automatically defuse all 10 fuses and the game is over with them winning.
User prompt
Let's add a score to the game over screen. This score will be equal to the time remaining.
User prompt
When the player loses, the lose text should appear as remaining time, colon, 0.00.
User prompt
When the player loses, ensure the remaining time shows as 0.00.
User prompt
The remaining time displayed should never show anything less than 0.00.
Code edit (1 edits merged)
Please save this source code
User prompt
Let's increase the scale of the explosion by five times.
User prompt
When the player loses, let's display the explosion image in the center of the screen.
User prompt
Let's add a new shape called Explosion.
User prompt
When the player loses, let's hide the dynamite image and the stopwatch image and the stopwatch text.
Code edit (2 edits merged)
Please save this source code
User prompt
Let's decrease the Opacity of the dynamite image and make it 80% opaque.
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -169,9 +169,9 @@
scaleY: 5
});
game.addChild(explosionImage);
// Display remaining time
- var remainingTimeTxt = new Text2('Remaining Time: 0.00', {
+ var remainingTimeTxt = new Text2('Remaining Time: ' + elapsedTime.toFixed(2), {
size: 100,
fill: "#ffffff"
});
remainingTimeTxt.anchor.set(0.5, 0.0);
cartoon dynamite. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
explosion. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit crowd of police and others cheer. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.