Code edit (17 edits merged)
Please save this source code
User prompt
in game initialize, add a Decoration to the game
Code edit (1 edits merged)
Please save this source code
Code edit (22 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: math is not defined' in or related to this line: 'self.progress = math.max(0, self.y - startY) / (endY - startY); // Update progress property' Line Number: 64
Code edit (1 edits merged)
Please save this source code
Code edit (16 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: roadtop is not defined' in or related to this line: 'self.y = roadtop;' Line Number: 183
User prompt
Please fix the bug: 'ReferenceError: roadtop is not defined' in or related to this line: 'self.y = roadtop;' Line Number: 183
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
NO, now it goes to black !!
User prompt
it's ok, now it goes from gray to white, but just invert it to go from white to gray
User prompt
in Landscape update, newTint should go from gray to white, not from black to gray
Code edit (1 edits merged)
Please save this source code
User prompt
in Landscape update, reverse the newTint calculation
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -130,11 +130,11 @@
anchorY: 0.0,
scaleY: -1,
y: 1050,
blendMode: 2,
- alpha: 0.75,
+ alpha: 0.5,
tint: 0xFFFFFF,
- height: 20
+ height: 10
});
self.x = 2048 / 2; // Center horizontally
self.y = 0; // Position at the top
self.update = function () {
@@ -305,9 +305,9 @@
height: roadHeight,
y: baseY
});
var speed = 5;
- var lineOffset = -130;
+ var lineOffset = -150;
var innerLineStartOffset = 950;
var innerLineEndOffset = 650;
var innerLeftLineStartX = -150;
var innerLeftLineEndX = -390;
@@ -326,20 +326,20 @@
var innerRightLineStartR = -0.075;
var innerRightLineEndR = -0.075;
// Lamp posts
// Left Lamp
- var leftLampStartX = -770;
- var leftLampEndX = -1100;
- var leftLampStartY = -370;
- var leftLampEndY = 1300; // Define leftLampEndY variable
+ var leftLampStartX = -150;
+ var leftLampEndX = -1024;
+ var leftLampStartY = 0;
+ var leftLampEndY = 2000; // Define leftLampEndY variable
var leftLampStartH = 2;
var leftLampEndH = 700;
var leftLampWRatio = 1 / 3;
// Right Lamp
- var rightLampStartX = 770;
- var rightLampEndX = 1100;
+ var rightLampStartX = 150;
+ var rightLampEndX = 1024;
var rightLampStartY = -370;
- var rightLampEndY = 1300; // Define leftLampEndY variable
+ var rightLampEndY = 2300; // Define leftLampEndY variable
var rightLampStartH = 2;
var rightLampEndH = 700;
var rightLampWRatio = 1 / 3;
var leftLine = self.attachAsset('triangle', {
@@ -349,18 +349,18 @@
height: 1950,
rotation: 0.45
});
leftLine.x = lineOffset; // Position the left line on the left side of the road
- leftLine.y = roadTop + 100; // Center the left line vertically
+ leftLine.y = roadTop + 45; // Center the left line vertically
var rightLine = self.attachAsset('triangle', {
anchorX: 0.5,
anchorY: 0,
width: 100,
- height: 1900,
- rotation: -0.3
+ height: 1950,
+ rotation: -0.45
});
rightLine.x = -lineOffset; // Position the right line on the right side of the road
- rightLine.y = roadTop; // Center the right line vertically
+ rightLine.y = roadTop + 45; // Center the right line vertically
self.innerLeftLines = [];
self.innerRightLines = [];
self.leftLampPosts = [];
self.rightLampPosts = [];
@@ -406,9 +406,10 @@
anchorX: 0.5,
anchorY: 0.5,
scaleX: -1,
height: rightLampStartH,
- width: rightLampStartH * rightLampWRatio
+ width: rightLampStartH * rightLampWRatio,
+ alpha: 0
});
rightLampPost.x = rightLampStartX;
rightLampPost.y = rightLampStartY + i * 500;
self.addChild(rightLampPost);
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