Code edit (12 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: self.bonusIcon is null' in or related to this line: 'self.bonusIcon.destroy();' Line Number: 269
Code edit (4 edits merged)
Please save this source code
User prompt
play bonus_approaching when bonus manager activate a bonus
User prompt
play bonus_take when taking a bonus
Code edit (1 edits merged)
Please save this source code
User prompt
in BOnus update, make bonusHalo rotate sequencially
===================================================================
--- original.js
+++ change.js
@@ -72,9 +72,9 @@
self.progress = Math.max(0, self.y - startY) / (endY - startY);
bonusGraphics.width = startSize + (endSize - startSize) * self.progress;
bonusGraphics.height = assetHeightRatio * bonusGraphics.width;
bonusHalo.visible = true;
- bonusHalo.rotation += 0.1; // Rotate bonusHalo sequentially
+ bonusHalo.rotation += 0.01 + (self.progress * 100 % 3 == 0); // Rotate bonusHalo sequentially
bonusHalo.width = bonusGraphics.width * 3;
bonusHalo.height = bonusGraphics.height * 3;
var tempSpeed = currentSpeed * 0.05 + currentSpeed * (self.progress * 3);
var newSpeed = currentSpeed * 1;
@@ -164,9 +164,9 @@
}
};
self.applyBonus = function (index) {
self.currentActiveBonus = index + 1;
- LK.getSound('coin_1').play(); // TODO PLAY BONUS SOUND
+ LK.getSound('bonus_take').play();
self.lastBonusUpdate = Date.now();
LK.setTimeout(function () {
// Start blinking effect 3 seconds before bonus ends
var blinkStartTime = Date.now();
Directly overhead, plumb view of a beggar heading top (we see his back).. Zenith view, directly overhead, plumb view. NOT PERSPECTIVE! Fantasy theme. Pixel art
a traffic cone. video game sprite
face view of a big start button in the shape of a dollar bill. video game style
a tree. video game style
a black garbage bag. video game style
Dollar bill. Perspective. video game sprite
perspective of a simple snake rolled up on itself.. video game sprite
Ball of dry desert bushes. video game sprite
tractor. high definition video game sprite
street ad billboard with 1 or 2 posts with "Get rich!" on it. high definition video game sprite
a dog sleeping on a street. video game sprite
desert bush. video game sprite
profile view of an empty motorcycle helmet. black with a white vertical central band and another thiner orange band on the center. NOT PERSPECTIVE!. Pixel art high definition
simple red and white magnet. video game style
gold sign with a "X" and a "2". video game style
bgMusic
Music
coin_1
Sound effect
hit_1
Sound effect
hit_2
Sound effect
hit_3
Sound effect
levelWin_1
Sound effect
car_1
Sound effect
police_1
Sound effect
ambulance_1
Sound effect
accident_1
Sound effect
killed_1
Sound effect
jump_1
Sound effect
rip_1
Sound effect
bonus_take
Sound effect
bonus_approaching
Sound effect