User prompt
kaybetdiğimde bombsound sesi çalsın
User prompt
oyuna score ekleyelim her emerald bulduğumuzda score artsın
User prompt
Please fix the bug: 'Uncaught ReferenceError: scoreTxt is not defined' in or related to this line: 'scoreTxt.setText(LK.getScore()); // LK.getScore is initialized to zero at game start.' Line Number: 51
User prompt
Please fix the bug: 'Uncaught ReferenceError: scoreTxt is not defined' in or related to this line: 'scoreTxt.setText(LK.getScore()); // LK.getScore is initialized to zero at game start.' Line Number: 137
User prompt
Please fix the bug: 'Uncaught ReferenceError: scoreTxt is not defined' in or related to this line: 'scoreTxt.setText(LK.getScore()); // LK.getScore is initialized to zero at game start.' Line Number: 137
User prompt
skor artmıyor onu düzelt
Code edit (3 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -123,8 +123,10 @@
}
// Oyunçunun xalini artir
function incrementScore() {
score++;
+ // Update and display the score in the game.
+ scoreTxt.setText(LK.getScore()); // LK.getScore is initialized to zero at game start.
}
// Oyunu bitir
function endGame(win) {
if (win) {