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
User prompt
ramps have a directional arrow indicator on top of them
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: PICKUP_TIL_SQRDIST is not defined' in this line: 'if (!tilted && distSqr <= PICKUP_TIL_SQRDIST) {' Line Number: 157
User prompt
Fix Bug: 'ReferenceError: PICKUP_TIL_SQRDIST is not defined' in this line: 'if (!tilted && distSqr <= PICKUP_TIL_SQRDIST) {' Line Number: 157
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: collectDist is not defined' in this line: 'var tiltDistSqr = collectDist * collectDist;' Line Number: 129
User prompt
when setting tilted = true in the pickup, adjust the pickupBase's graphic rotation to be between 5 and 20 degrees
Code edit (1 edits merged)
Please save this source code
User prompt
When a pickup is activated, destroy the graphic and decor and create a pickupBase graphic in their place
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: self.activate is not a function' in this line: 'self.activate();' Line Number: 157
User prompt
create a pickupProjectileList variable in the games class
Code edit (10 edits merged)
Please save this source code
User prompt
add an activate function to the pickups class which sets the self.active to true. This should be called where `self.active = true;` is called in the pickups class
===================================================================
--- original.js
+++ change.js
@@ -166,8 +166,11 @@
}
}
function activate() {
self.active = true;
+ graphics.destroy();
+ decor.destroy();
+ var pickupBase = self.createAsset('pickupBase', 'Pickup base graphics', 0.5, 0.95);
}
});
var LandscapeTile = Container.expand(function (x, y, {lookup, xIndex, yIndex, density, pickups, monsters, player, key, landscapeTiles, layers, rampList}) {
var self = Container.call(this);
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