Code edit (2 edits merged)
Please save this source code
User prompt
in decoration reset log // Add left & right startX & endX here
Code edit (1 edits merged)
Please save this source code
User prompt
inside Decoration replace all leftEndX by self.leftEndX
User prompt
Please fix the bug: 'ReferenceError: leftStartX is not defined' in or related to this line: 'self.x = leftStartX;' Line Number: 259
User prompt
in Decoration, make leftEndX a property self.leftEndX; don't forget any previous ref
User prompt
Please fix the bug: 'ReferenceError: leftStartX is not defined' in or related to this line: 'leftEndX = leftStartX - xOffset * rand;' Line Number: 254
User prompt
Please fix the bug: 'ReferenceError: leftStartX is not defined' in or related to this line: 'var leftEndX = leftStartX - xOffset * (1.5 + rand);' Line Number: 184
User prompt
in Decoration, make leftStartX a property self.leftStartX
Code edit (8 edits merged)
Please save this source code
User prompt
Make the killing hit flash last longer
Code edit (1 edits merged)
Please save this source code
Code edit (8 edits merged)
Please save this source code
User prompt
There's a problem for decorations, they sometimes appear with a big size, not respecting the height dependency on progress. can you find why ?
Code edit (1 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
add a global nbDecorations
Code edit (5 edits merged)
Please save this source code
User prompt
in Decoration update, also log y
Code edit (4 edits merged)
Please save this source code
User prompt
in decoration class reset(), log assetIndex and size
User prompt
pass i index to Decoration constructor and store it in an index property
User prompt
add a global array for decorations
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: mainGraphics is undefined' in or related to this line: 'mainGraphics.width = startSize;' Line Number: 200
===================================================================
--- original.js
+++ change.js
@@ -866,9 +866,9 @@
}
return n;
}
var stripes = [];
-var nbDecorations = 5;
+var nbDecorations = 1;
var decorations = [];
// Initialize arrays and variables
var currentLevel = 1;
var isPlaying = false;
@@ -1008,9 +1008,9 @@
stripe.stripeGraphics.height = 1 + 400 * stripe.progress; // Adjust height based on progress
//console.log("Stripe ", i, " y=", stripe.y, " h=", stripe.stripeGraphics.height, " p=", stripe.progress);
}
// Create and attach decoration instances to the game
- for (var i = 0; i < 5; i++) {
+ for (var i = 0; i < nbDecorations; i++) {
var newDecoration = new Decoration(i);
newDecoration.reset();
decorations.push(newDecoration);
game.addChild(newDecoration);
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