User prompt
Dans l'animation de l'arbre, faites le mouvement de l'arbre parabolique.
Code edit (2 edits merged)
Please save this source code
User prompt
For the coin animation, make the coin jump either left or right.
User prompt
Lorsque vous atteignez un obstacle, ajoutez une nouvelle animation d'une monnaie qui saute hors du joueur.
Code edit (1 edits merged)
Please save this source code
User prompt
when continuously hiting an obstacle, hit should be counted only once until intersection ends
User prompt
hiting an obstacle should be counted only once per obstacle
User prompt
hiting an obstacle should be counted only once
Code edit (1 edits merged)
Please save this source code
User prompt
obstacles should not disapear when hit
Code edit (2 edits merged)
Please save this source code
User prompt
in obstacle reset don't change the obstacleGraphics
Code edit (3 edits merged)
Please save this source code
User prompt
if self.assetIndex == 0 startSize = 60 and endSize = 120 if self.assetIndex == 1 startSize = 300 and endSize = 400
User prompt
store Math.floor(Math.random() * assets.length) in an assetIndex property
User prompt
update ``` var startSize = 200; var endSize = 300; ``` to make it dynamid depending on the asset
User prompt
alternate randomly the asset for obstacle
User prompt
in Obstacle class, create an array named assets = ['dogPoop', 'hole']
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
instead of increasing continuously : ``` if (currentSpeed < maxSpeed) { currentSpeed += 0.005; } ``` make currentSpeed increase punctually every 3 more coins collected
Code edit (2 edits merged)
Please save this source code
User prompt
make player flash 'gold' when taking a coin
User prompt
score should not go negative
User prompt
make player flash when hitting an obstacle and lose 1 score
===================================================================
--- original.js
+++ change.js
@@ -381,9 +381,9 @@
if (player && player.shadow && player.shadow.intersects(obstacles[i])) {
// Make player flash red for 1 second
LK.effects.flashObject(player, 0xff0000, 1000);
// Reduce score by 1
- score -= 1;
+ score = Math.max(0, score - 1);
scoreTxt.setText(score);
// Reset the obstacle
obstacles[i].reset();
}
Directly overhead, plumb view of a beggar heading top (we see his back).. Zenith view, directly overhead, plumb view. NOT PERSPECTIVE! Fantasy theme. Pixel art
a traffic cone. video game sprite
face view of a big start button in the shape of a dollar bill. video game style
a tree. video game style
a black garbage bag. video game style
Dollar bill. Perspective. video game sprite
perspective of a simple snake rolled up on itself.. video game sprite
Ball of dry desert bushes. video game sprite
tractor. high definition video game sprite
street ad billboard with 1 or 2 posts with "Get rich!" on it. high definition video game sprite
a dog sleeping on a street. video game sprite
desert bush. video game sprite
profile view of an empty motorcycle helmet. black with a white vertical central band and another thiner orange band on the center. NOT PERSPECTIVE!. Pixel art high definition
simple red and white magnet. video game style
gold sign with a "X" and a "2". video game style
bgMusic
Music
coin_1
Sound effect
hit_1
Sound effect
hit_2
Sound effect
hit_3
Sound effect
levelWin_1
Sound effect
car_1
Sound effect
police_1
Sound effect
ambulance_1
Sound effect
accident_1
Sound effect
killed_1
Sound effect
jump_1
Sound effect
rip_1
Sound effect
bonus_take
Sound effect
bonus_approaching
Sound effect