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
@@ -37,8 +37,10 @@
anchorY: 0.5
});
// Play a sound
LK.getSound('emeraldSound').play();
+ // Update and display the score in the game.
+ scoreTxt.setText(LK.getScore()); // LK.getScore is initialized to zero at game start.
}
};
});
@@ -57,10 +59,10 @@
/****
* Game Code
****/
-// Mesaj gosterme funksiyasi
// Shəbəkəni qur
+// Mesaj gosterme funksiyasi
var showMessage = function showMessage(message, color) {
var messageBox = new Text2(message, {
size: 64,
fill: color || "#ffffff",