Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Use 5 different bell chime sounds
User prompt
Play a bell chime when you touch a bell
User prompt
Migrate to the latest version of LK
User prompt
Also submit scores to LK.setScore when scores are updated
User prompt
Update code to use LK scote
User prompt
add 8 bells when the game starts
User prompt
set speed y to -15 when hitting a bell
User prompt
Half the y modifier when spawning a new bell
Code edit (1 edits merged)
Please save this source code
User prompt
Add 500px to targetParallaxValue
Code edit (2 edits merged)
Please save this source code
User prompt
slowly increase bellSpeed each time you collect a bell
User prompt
in ScoreText set font weight to 400.
User prompt
Start score text scale at zero in ScoreText, then quickly scale to a max of one
User prompt
Update score text move method, such that a score first animates in from scale zero, then stays on screen for a bit and then scales down again together with alpha
User prompt
do not move y in score text move method
User prompt
when creating a particle, just pass p
Code edit (1 edits merged)
Please save this source code
User prompt
Subtract 4 from score y speed rather than 2
User prompt
On score text in ScoreText label add a 10px black outline
User prompt
Set score text text2 node, in ScoreText class, to size to 120. Sweet weight:200 and remove the drop shadow
User prompt
Set score text text2 node size to 120. Sweet weight:200 and remove the drop shadow
User prompt
add score texts to the particle array
===================================================================
--- original.js
+++ change.js
@@ -235,8 +235,9 @@
var player;
var scoreTxt;
var isGameOver = false;
var bellChimeNumber = 0;
+var soundAddOffset = 0;
LK.on('tick', function () {
player._update_migrated();
var targetParallaxValue = 1366 - player.y + 500;
var currentParallaxValue = foreground.actualY;
@@ -266,10 +267,11 @@
game.particles.push(scoreText);
forest.addChild(scoreText);
}
// Play a random bell chime sound
- bellChimeNumber++;
- LK.getSound('bellChime' + bellChimeNumber % 5).play();
+ bellChimeNumber += Math.floor(soundAddOffset);
+ soundAddOffset += Math.abs(Math.cos(bellChimeNumber));
+ LK.getSound('bellChime' + (bellChimeNumber % 5 + 1)).play();
bells[i].destroy();
bells.splice(i, 1);
game.addBell();
} else if (bells[i].y + foreground.actualY > 2832) {
Tree line of snowy pine trees. Cartoon. Black background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Mountain valley with snowy trees. Scenic view. Nighttime. Cartoon. Black background. New moon Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Background mountains, nighttime, snow topped Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d platform snowy ground. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cute cartoon rabbit, jumping upwards facing camera. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Starry night sky, northern lights, looking up. Cartoon style. Above clouds Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Single White Christmas bell. White decorations. Cartoon. Outline Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
White Simple Cartoon snowflake Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.