===================================================================
--- original.js
+++ change.js
@@ -352,8 +352,9 @@
var jumpSpeed = jumpSpeedMax * (targetDistSqr >= jumpDistMaxSqr ? 1 : Math.sqrt(targetDistSqr) / jumpDistMax);
jumpVelocityX = Math.cos(angle) * jumpSpeed;
jumpVelocityY = Math.sin(angle) * jumpSpeed;
self.jumping = true;
+ LK.getSound('monsterJump').play();
}
}
graphics.y = -Math.max(0, updateCurve) * jumpHeight;
graphics.scale.x = player.x < self.x ? -1 : 1;
@@ -530,9 +531,10 @@
var facingSide = targetPosition.x < self.x ? -1 : 1;
platformGraphics.rotation = angle;
playerGraphics.rotation = speed * reduction / tiltSpeedFactor * (Math.PI / 2) * facingSide;
playerGraphics.scale.x = facingSide;
- playerGraphics.x = platformGraphics.x + 30 * Math.cos(platformGraphics.rotation);
+ playerGraphics.x = platformGraphics.x + 30 * Math.cos(platformGraphics.rotation) + 30 * Math.sin(platformGraphics.rotation);
+ playerGraphics.y = platformGraphics.y + 30 * Math.sin(platformGraphics.rotation);
}
return {
velocityX: velocityX,
velocityY: velocityY
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.