===================================================================
--- original.js
+++ change.js
@@ -62,8 +62,9 @@
self.jump = function () {
if (!self.hasJumped) {
self.speedy = -30;
self.hasJumped = true;
+ LK.getSound('swoosh').play();
}
};
self.fall = function () {};
self._update_migrated = function () {
@@ -234,9 +235,8 @@
}
var player;
var scoreTxt;
var isGameOver = false;
-var bellChimeNumber = 0;
LK.on('tick', function () {
player._update_migrated();
var targetParallaxValue = 1366 - player.y + 500;
var currentParallaxValue = foreground.actualY;
@@ -265,12 +265,10 @@
var scoreText = new ScoreText(bells[i].score, bells[i].x, bells[i].y - layerDeltaY);
game.particles.push(scoreText);
forest.addChild(scoreText);
}
- // Play a random bell chime sound
- var mus = [1, 3, 5, 4, 2, 1, 3, 2, 4, 5, 3, 1, 4, 5, 2, 3, 1, 4, 2, 5, 3, 1, 4, 2, 3, 5, 1, 2, 4, 3, 5, 1, 2, 3, 4, 5, 1, 3, 4, 2, 5, 1, 4, 3, 2, 5, 1, 3, 2, 4, 1, 5, 3, 2, 4, 1, 5, 3, 2, 4, 1, 5, 2, 3, 4, 1, 5, 3, 2, 4, 1, 5];
- //LK.getSound('bellChime' + mus[bellChimeNumber % mus.length]).play();
- bellChimeNumber++;
+ // Play a bell chime sound
+ LK.getSound('bellChime').play();
bells[i].destroy();
bells.splice(i, 1);
game.addBell();
} else if (bells[i].y + foreground.actualY > 2832) {
@@ -302,14 +300,8 @@
var event = obj;
var pos = game.toLocal(event.global);
player.targetX = pos.x;
player.jump();
- var mus = [1, 3, 4, 5];
- var mo = 0;
- LK.setInterval(function () {
- LK.getSound('bellChime' + mus[mo % mus.length]).play();
- mo++;
- }, 500);
});
game.on('move', function (x, y, obj) {
var event = obj;
var pos = game.toLocal(event.global);
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.