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
@@ -59,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",
@@ -131,9 +131,9 @@
// 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.
+ scoreTxt.setText(score);
}
// Oyunu bitir
function endGame(win) {
if (win) {