User prompt
There should be up to 15 shadow particles at a time, spawned while the bird is in the air
User prompt
Spawn the shadows every few frames, while the cat is in the air
User prompt
Don't fade out the shadow immediately, they should stick around for 200ms or so
User prompt
They should be at full alpha for the 200ms, and only then do they start fading out
Code edit (1 edits merged)
Please save this source code
User prompt
Ensure the shadow graphics scale x matches the cats at the time it's spawned.
User prompt
Ensure the shadow graphics are behind the cat
User prompt
Ensure the z index of the shadow graphics are behind the cat
Code edit (3 edits merged)
Please save this source code
User prompt
Make the shadow graphics tint a bright fuschia
User prompt
Spawn the shadows with the same flip / scale x as the bird
Code edit (12 edits merged)
Please save this source code
User prompt
Add 1 score every '10 y' that we travel up
User prompt
Please fix the bug: 'ReferenceError: tutorialText is not defined' in or related to this line: 'tutorialText.y += 5;' Line Number: 200
User prompt
Remove the tutorial text
User prompt
Add 1 score every 10 ticks instead of based on y position
User prompt
Add a simulated y position that increases by game.obstacleSpeed every tick. The score should be this divided by 10.
Code edit (2 edits merged)
Please save this source code
User prompt
Migrate to the latest version of LK
Code edit (17 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -237,6 +237,8 @@
game.checkObstacleCollision(rightObstacles);
if (bird.y < 0 || bird.y > 2732) {
LK.setScore(game.score);
LK.showGameOver();
+ } else if (bird.ySpeed < 0) {
+ game.score += Math.floor(Math.abs(bird.ySpeed) / 10);
}
});
\ No newline at end of file