User prompt
Make the answer of these questions "Cows can fly." and "The earth is flat" false.
User prompt
Add green flash color for true and red flash color for false when swiping on the screen.
User prompt
Add a gesture of swiping for the true or false question.
User prompt
Remove the buttons
User prompt
Fix Bug: 'TypeError: trueButton.containsPoint is not a function' in this line: 'if (trueButton.containsPoint(pos)) {' Line Number: 154
User prompt
Add a hill background.
User prompt
Fix Bug: 'ReferenceError: swipeGesture is not defined' in this line: 'swipeGesture.startSwipe(obj.event);' Line Number: 140
User prompt
Add buttons to choose an option (1st button: True; 2nd button: False.) (Button colors: Green (1st) and Red (2nd).)
User prompt
Add questions to become trivia.
User prompt
Fix Bug: 'Uncaught TypeError: this.text.setText is not a function' in this line: 'this.text.setText(question);' Line Number: 14
Initial prompt
True or False
===================================================================
--- original.js
+++ change.js
@@ -135,18 +135,22 @@
var direction = swipeGesture.endSwipe(obj.event);
if (direction === 'right') {
// Handle swipe right for true
if (triviaQuestion.checkAnswer(true)) {
+ LK.effects.flashScreen(0x00ff00, 500);
triviaQuestion.nextQuestion();
} else {
// Handle wrong answer
+ LK.effects.flashScreen(0xff0000, 500);
}
} else if (direction === 'left') {
// Handle swipe left for false
if (triviaQuestion.checkAnswer(false)) {
+ LK.effects.flashScreen(0x00ff00, 500);
triviaQuestion.nextQuestion();
} else {
// Handle wrong answer
+ LK.effects.flashScreen(0xff0000, 500);
}
}
});