Initial prompt
Catch to scale
User prompt
make the player graphic bigger by 5% every time the score is increased by 5
User prompt
scale the player by 10% each time the score increases by 5
User prompt
create a background image
User prompt
add some cloud assets which move from right to left at the top
User prompt
make clouds go left to right
User prompt
make clouds move from the left side to the right side
User prompt
instead of the healthyfood falling down from the top, make them fall down from the clouds. Basically the clouds spawn a new healtfood
User prompt
make each falling food have a different speed
User prompt
if a unhealthyFood is not caught by the player, then decrease the score by one
User prompt
if the score is minus 1, the game is over
User prompt
make the player scale by 30%. The player can not scale bigger than 150%
User prompt
make an enemy which is located on the same y position as the player. the enemy changes randomly its x position
User prompt
if the player hits the enemey. the game is over
User prompt
the enemy does not change its position to the players one
User prompt
the enemy random x position can not be the players current position
User prompt
if the score hits 10, create a new enemey
User prompt
if the player hits the duck, scale the duck by 300%
User prompt
if the player hits a healthyfood and the player has scaled before, then scale down by 30%
User prompt
scale the initial player sizte to 130%
User prompt
when the enemy changes its position randomly, make sure it does not intersect with the player
Code edit (1 edits merged)
Please save this source code
User prompt
change the max player scale to 300%
User prompt
if the player scales, make sure the y position stays the same
User prompt
if the player scales, make sure to adapt the y position of the player
===================================================================
--- original.js
+++ change.js
@@ -139,13 +139,14 @@
player.scale.x *= 1.30;
player.scale.y *= 1.30;
}
}
- } else if (foods[i].type === 'duck') {
- foods[i].scale.x *= 3;
- foods[i].scale.y *= 3;
} else {
score -= 1;
+ if (player.scale.x > 1 && player.scale.y > 1) {
+ player.scale.x /= 1.30;
+ player.scale.y /= 1.30;
+ }
}
scoreTxt.setText(score.toString());
foods[i].destroy();
foods.splice(i, 1);
broccoli. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. 8bit
fat boy. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. 8bit. no background.
burger. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. 8bit. no background.
city with skyscrapers with a big street at the bottom. in-Game background asset. 2d. High contrast. No shadows. 8bit.
an evil rubber duck. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. 8bit
an evil broccoli airship. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. 8bit
an evil burger airship. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. 8bit