Code edit (7 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: LK.gui.topLeft.bottomCenter is undefined' in this line: 'var instructions = LK.gui.topLeft.bottomCenter.addChild(new Instructions());' Line Number: 679
User prompt
Fix Bug: 'TypeError: LK.gui.topLeft.bottomCenter is undefined' in this line: 'var instructions = LK.gui.topLeft.bottomCenter.addChild(new Instructions());' Line Number: 679
User prompt
add an instructions class which display the following text at the bottom of the screen: "Tap, click or drag to change direction and collect flags!"
Code edit (7 edits merged)
Please save this source code
User prompt
when calling the interface's update method, pass through the player's netSpeed and display it under the distance
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: playerGraphics is not defined' in this line: 'playerGraphics.y = -self.rampHeight;' Line Number: 444
User prompt
The playerGraphics should be split into two distinct graphics playerFront and playerSide graphics. In the update function, if the angle is roughly pointing downwards, then set the front alpha to 1 and the side to 0, otherwise invert the alphas
Code edit (1 edits merged)
Please save this source code
User prompt
add a banner asset to the interface
User prompt
tint the heart black when losing it, in the interface
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
visually set the scoreIcon to be on the right of the scoreText
Code edit (5 edits merged)
Please save this source code
User prompt
in the game on tick, iterate through the pickupProjectileList and calling it's update statement
Code edit (4 edits merged)
Please save this source code
User prompt
create a pickupProjectile class that has an update function to move towards the player at a speed of 20
Code edit (1 edits merged)
Please save this source code
User prompt
when the pickup decor flips, randomly scale the decor's x to be between PICKUP_FLIP_SCALE and 1
Code edit (1 edits merged)
Please save this source code
User prompt
remove any console.logs
Code edit (11 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -675,9 +675,9 @@
var rampList = [];
;
var layers = [self.addChild(new Container()), self.addChild(new Container()), self.addChild(new Container())];
var interface = LK.gui.topCenter.addChild(new Interface(0, INTERFACE_HEIGHT_OFFSET));
- var instructions = LK.gui.topLeft.bottomCenter.addChild(new Instructions());
+ var instructions = LK.gui.center.addChild(new Instructions());
var trail = layers[LAYER_BACKGROUND].addChild(new Trail(playerPosX, playerPosY));
var player = layers[LAYER_MIDGROUND].addChild(new Player(playerPosX, playerPosY));
landscapeTiles.push(landscapeLookup['0:0'] = layers[LAYER_FOREGROUND].addChild(new LandscapeTile(STAGE_WIDTH / 2, TILE_SIZE / 2, {
density: -1,
pixel art of a tree stump covered in snow. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a dead tree covered in snow. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a spruce tree covered in snow. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a rock covered in snow. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Pixel art heart icon . Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
two vertical lines with a blank background.
pixel art of a large, snow covered rock . Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of skiis . Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a floating grinch monster . Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
single green firework explosion . Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a wooden board covered in snow. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a wooden pole with snow at it's base. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tileable white water texture pixel art.
pixel art of a red flag. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a red orb. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white
white
pixel art shape of a red arrow pointing downwards. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art banner of a pair of skis crossed. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white