Code edit (5 edits merged)
Please save this source code
User prompt
make currentSpeed increase over time
Code edit (4 edits merged)
Please save this source code
User prompt
make player frame animation depend on currentSpeed
Code edit (3 edits merged)
Please save this source code
User prompt
add a new global currentSpeed
User prompt
change move system from tap to swipe (swipe left => go left; swipe right> go right)
Code edit (4 edits merged)
Please save this source code
User prompt
in coin make w & h go from startSize to endSize following progress (like x)
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: innerLeftLineEndX is not defined' in or related to this line: 'if (self.x != innerLeftLineEndX) {' Line Number: 37
Code edit (5 edits merged)
Please save this source code
User prompt
like in road, add a progress to Coin
Code edit (3 edits merged)
Please save this source code
User prompt
if coin is on left or right path, add leftStartOffsetX or rightStartOffsetX to ts x
Code edit (8 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'length')' in or related to this line: 'self.x = playerPositions[Math.floor(Math.random() * playerPositions.length)];' Line Number: 32
User prompt
coins x should be one of the playerPositions randomly
Code edit (1 edits merged)
Please save this source code
Code edit (10 edits merged)
Please save this source code
User prompt
in innerLineLeft add a property progress that goes from 0 when y =-roadGraphics.height / 2 to 1 when y=roadGraphics.height / 2
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
add a debugMarker at 1000,0
===================================================================
--- original.js
+++ change.js
@@ -8,14 +8,16 @@
var coinGraphics = self.attachAsset('coin', {
anchorX: 0.5,
anchorY: 0.5
});
+ var speed = 5;
var leftStartX = 1024 - 150 - 150;
var leftEndX = 1024 - 390 - 200;
var rightStartX = 1024 + 150 + 150;
var rightEndX = 1024 + 390 + 200;
self.update = function () {
- self.y += 5; // Move coin downwards
+ var newSpeed = speed + (10 - speed) * self.progress;
+ self.y += newSpeed;
self.progress = (self.y + 50) / (2732 + 50); // Update progress property
if (self.y > 2732) {
self.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