User prompt
No, let's do something more rigid, something more analog looking for the font.
User prompt
Let's change the font to something that looks more digital, like an LCD font.
User prompt
Let's create a white stroke around the timer and make the timer text black.
User prompt
Right let's do that
User prompt
The win message and boom message should be shown at the top of the screen when the game is over.
User prompt
Let's show the seconds remaining at the top of the screen when the game ends.
User prompt
Please fix the bug: 'ReferenceError: winTxt is not defined' in or related to this line: 'if (!winTxt) {' Line Number: 111
User prompt
We should do something special if the user gets the exact time to the hundredth of the second. So for this special case, we should flash the screen yellow and give them 10 points.
User prompt
If the user gets the exact time to the hundredth of a second, they should automatically win the game and get 10 points.
User prompt
The timer should stop when the user presses down on the mouse button and not when they release it.
User prompt
Please fix the bug: 'ReferenceError: loseTxt is not defined' in or related to this line: 'if (!loseTxt) {' Line Number: 119
User prompt
I'm still not seeing the win or boom on screen. Do you know why?
User prompt
Please disconnect U-Win and Boom from other elements on the screen. Their anchors should be independent of those, and they should appear vertically near the top and horizontally center on the screen.
User prompt
please correct that
User prompt
It needs to go in the other direction. It's adding rather than subtracting total time.
User prompt
Let's use persistent deduction.
User prompt
If the user clicks on the wrong time, when the screen flashes red, it should also deduct five seconds from the timer that is counting down.
User prompt
The you win text is not centered. It should be directly beneath the score
User prompt
Let's remove the green effect at the end when you win.
User prompt
Instead of minusing a point for getting the wrong time, let's deduct one second of the timer.
Code edit (1 edits merged)
Please save this source code
User prompt
The you win and you lose text should be center justified so they appear in the center horizontal section of the screen.
User prompt
If the player loses and the time runs out, they should get the message, you lose, the bomb went off, right below the score. Size 200, centered at the top of the screen, 200 pixels from the top.
User prompt
Every time the player misses the timer, they should get negative one point, but it should never go below zero. Zero is the lowest amount of points they can get.
User prompt
The you win message is showing up on the far right of the screen. This should be centered right beneath the score.
===================================================================
--- original.js
+++ change.js
@@ -10,8 +10,9 @@
/****
* Game Code
****/
// Initialize variables
+var loseTxt = null;
var startTime = null;
var elapsedTime = 0;
var timerTxt = null;
var gameStarted = false;
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.