Code edit (8 edits merged)
Please save this source code
User prompt
flash the screen red when losing a life instead of on game over
Code edit (6 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: scoreText is not defined' in this line: 'scoreText.setText(score);' Line Number: 328
User prompt
Move the displayed score, score icon and lives into its own Interface class. This class should have changeLives(amount) and changeScore(amount) functions which change the score and lives values by the amount
User prompt
Fix Bug: 'TypeError: self.gameInstance.lifeIcons is undefined' in this line: 'var lifeIcon = self.gameInstance.lifeIcons[self.gameInstance.lives];' Line Number: 191
User prompt
Fix Bug: 'TypeError: self.parent.lifeIcons is undefined' in this line: 'var lifeIcon = self.parent.lifeIcons[self.parent.lives];' Line Number: 190
User prompt
The player should have 3 lives, displayed as three icons under the score. The player should lose 1 life when colliding with an obstacle, and the obstacle should become inactive
User prompt
Fix Bug: 'ReferenceError: velocityX is not defined' in this line: 'playerGraphics.scale.x = velocityX < 0 ? -1 : 1;' Line Number: 193
Code edit (1 edits merged)
Please save this source code
User prompt
landscapeTiles should create the pickup before the obstructions, additionally, if a pickup is created, prevent spawning obstructions within 200 distance from the pickup
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
when a pickup is within 200*200 distance squared from the player, the pickup becomes active, flying towards the player at a speed of 5
Code edit (4 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: parent.pickups is undefined' in this line: 'parent.pickups.push(new Pickup(parent, pickupX, pickupY));' Line Number: 53
User prompt
Add a Pickup class that can be collected by the player increasing the score by 1. These Pickups have a 10% chance of spawning when on a landscapeTile when it activates, adding to a pickups array and should move like the landscapeTiles.
Code edit (1 edits merged)
Please save this source code
User prompt
Add a score variable which is displayed in the top-center of the screen in black with a score icon to the left of it
User prompt
the score and score icon should be centered
User prompt
Add a score variable which is displayed in the top center of the screen in black and has a score icon next to it
User prompt
Fix Bug: 'ReferenceError: speedText is not defined' in this line: 'speedText.anchor.set(1, 0);' Line Number: 180
User prompt
Add a score variable and a PresentPickup class which can be collected by the player to increase their score by 1, the score is displayed in the top center of the screen in black and has a score icon next to it
Code edit (1 edits merged)
Please save this source code
User prompt
end the game if landscapeTile.checkCollision return true within the tick function
===================================================================
--- original.js
+++ change.js
@@ -241,12 +241,13 @@
lives += amount;
for (var i = 0; i < lifeIcons.length; i++) {
lifeIcons[i].alpha = i < lives ? 1 : 0.5;
}
- if (lives <= 0) {
- LK.showGameOver();
- } else {
+ if (amount < 0) {
LK.effects.flashScreen(0xff0000, 1000);
+ if (lives <= 0) {
+ LK.showGameOver();
+ }
}
}
function changeScore(amount) {
score += amount;
Pixel art of a Santa. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
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 christmas 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 of a christmas present counter. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a christmas present. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a blue christmas present. 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.