===================================================================
--- original.js
+++ change.js
@@ -314,9 +314,9 @@
graphics.scale.x = Math.random() < 0.5 ? 1 : -1;
shadow.width = graphics.width * 0.9;
shadow.height = graphics.width * 0.45;
shadow.tint = 0x000000;
- shadow.alpha = 0.5;
+ shadow.alpha = 0.0;
;
self.x = x;
self.y = y;
self.jumping = false;
@@ -408,13 +408,15 @@
anchorY: 0.95
});
var backShadow = self.attachAsset('shadow', {
anchorX: 0.5,
- anchorY: 0.5
+ anchorY: 0.5,
+ alpha: 0.25
});
var foreShadow = self.attachAsset('shadow', {
anchorX: 0.5,
- anchorY: 0.5
+ anchorY: 0.5,
+ alpha: 0.25
});
foreShadow.width = graphics.width;
foreShadow.height = graphics.width * 0.25;
backShadow.width = graphics.width;
@@ -462,13 +464,17 @@
anchorY: 0.5
});
var platformGraphics = self.attachAsset('platform', {
anchorX: 0.4,
- anchorY: 0.5
+ anchorY: 0.5,
+ x: -30
});
var playerGraphics = self.attachAsset('player', {
anchorX: 0.575,
anchorY: 1
+ /*x: 30,
+ y: 0
+ */
});
var hitbox = self.attachAsset('hitbox', {
anchorX: 0.5,
anchorY: 0.5
@@ -524,8 +530,9 @@
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);
}
return {
velocityX: velocityX,
velocityY: velocityY
@@ -684,9 +691,9 @@
var targetPosition = {
x: playerPosX,
y: playerPosY
};
-game.setBackgroundColor(0x00A300);
+game.setBackgroundColor(0x00FF00);
;
game.on('down', function (x, y, obj) {
isMouseDown = true;
updatePosition(obj);
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.