User prompt
show rainbow icons at the score right
User prompt
like there is a system of lifes and lifeIcons add a system of rainbow and rainbowIcons
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: _player$update is undefined' in or related to this line: 'return;' Line Number: 593
Code edit (2 edits merged)
Please save this source code
User prompt
add a global isStarted
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: startButton is undefined' in or related to this line: 'startButton.on('down', function () {' Line Number: 743
User prompt
at start, add the sartButton asset in the center of the screen and wait for a tap to remove it and start the game
User prompt
if (totalCollectedPickups > 0 && totalCollectedPickups % 7 === 0) also changeScore with 1 and a random variant
Code edit (1 edits merged)
Please save this source code
User prompt
in rainbowAnimation start, play bigBonusSound
Code edit (1 edits merged)
Please save this source code
User prompt
in rainbowAnimation, confettis should spread in all directions
Code edit (1 edits merged)
Please save this source code
User prompt
in rainbowAnimation, donc make confettis 'vibrate', just flee to borders
Code edit (1 edits merged)
Please save this source code
User prompt
in rainbowAnimation, make confettis start from center and move out of screen
Code edit (1 edits merged)
Please save this source code
User prompt
in rainbowAnimation preserve asset ratio
User prompt
in rainbowAnimation, don't rotate confettis
User prompt
rework rainbowAnimation to create a confetti like animation using rainbow asset
User prompt
each tiime totalCollectedPickups> 0 && totalCollectedPickups%7 ==0 play rainbowAnimation
User prompt
add a new global totalCollectedPickups
User prompt
add a new function rainbowAnimation where a rainbow asset is created at the center of the screen with w & h at 0 and alpha 1, then it grows until w=2048 & h =908. when reaching 1480 and alpha ==1 then alpha starts lowering slowly to reach 0 when w = 2048. then rainbow is destroyed
===================================================================
--- original.js
+++ change.js
@@ -715,9 +715,9 @@
}
var interval = LK.setInterval(function () {
for (var i = 0; i < confettiArray.length; i++) {
var confetti = confettiArray[i];
- var angle = Math.random() * 2 * Math.PI;
+ var angle = Math.atan2(confetti.y - STAGE_HEIGHT / 2, confetti.x - STAGE_WIDTH / 2);
confetti.x += Math.cos(angle) * 30;
confetti.y += Math.sin(angle) * 30;
confetti.width += 1;
confetti.height = confetti.width * (113.5 / 256); // Preserve aspect ratio
Pixel art heart icon . Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
two vertical lines with a blank background.
single green firework explosion . Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Pixel art of a cute elf. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tileable green grass texture..
arbre chene.
cerisier avec des fleur. Pixel art.
pixel art of a large rock.
pixel art of a tree stump.
pixel art of a 4 leaf clover.
pixel art of a wooden board.
pixel art of a bush.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a 4 leaf orange clover... Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a 4 leaf purple clover.... Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a 4 leaf indigo clover.... Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A start button for an elf game in a magic forest. Pixel art.