User prompt
fix the issue
User prompt
play wrong answer sound whenever the player clicks the wrong button
User prompt
Little bit more
User prompt
Move little bit more
User prompt
move the "i am" text little bit above.
User prompt
Show Text "I AM" Above the Shape
User prompt
reset timer to 3 sec when any button is pressed.
User prompt
Add a sound for the Wrong Answer.
User prompt
Play Sound On Button Clicks
User prompt
Change the Color of True And False Text to White
User prompt
when player press the wrong button flash screen red
User prompt
but when i timer counts down and ends the lives are not reducing instead it just gameover, fix that
Code edit (1 edits merged)
Please save this source code
User prompt
in timer update, check whether lives are 0 or not instead of livesDiplay.length
User prompt
still issue persists
User prompt
game is getting over when i have lives and timer ends, i don't want that
User prompt
do not game over when timer ends, instead game only end when the lives are finished.
User prompt
show three lives on the top left corner with heart image representation, and reduce the lives by 1 each time the player press the wrong button, and timer gets finished
User prompt
also change the updation of the time when buttons are clicked
User prompt
instead of using string to track the time, use integer to track the time and update.
User prompt
Please fix the bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'getText')' in or related to this line: 'var timeLeft = parseInt(timerTxt.text.getText().split(' ')[1]);' Line Number: 180
User prompt
print the timeLeft on console
User prompt
Please fix the bug: 'Timeout.tick error: timerTxt.getText is not a function' in or related to this line: 'var timeLeft = parseInt(timerTxt.getText().split(' ')[1]);' Line Number: 180
User prompt
debug the timer text update
===================================================================
--- original.js
+++ change.js
@@ -154,9 +154,9 @@
trueButtonBackground.x = 2048 / 4;
trueButtonBackground.y = 2732 * 3 / 4;
var trueButton = new Text2('True', {
size: 200,
- fill: "#00ff00"
+ fill: "#ffffff"
});
trueButtonBackground.addChild(trueButton);
trueButton.anchor.set(0.5, 0.5);
trueButton.x = 2048 / 4;
@@ -172,9 +172,9 @@
falseButtonBackground.x = 2048 * 3 / 4;
falseButtonBackground.y = 2732 * 3 / 4;
var falseButton = new Text2('False', {
size: 200,
- fill: "#ff0000"
+ fill: "#ffffff"
});
falseButtonBackground.addChild(falseButton);
falseButton.anchor.set(0.5, 0.5);
falseButton.x = 2048 * 3 / 4;