User prompt
Remove the var is start from railing left class.
User prompt
Keeping the same position, match the railing right code in the railing left class
User prompt
Set railing left scroll speed to 2
User prompt
Slow down railing left scroll speed
User prompt
Slow down railing left scroll speed to match railing right.
User prompt
Slow down railing right to synch up with railing left.
User prompt
Railing left needs to start with railing start and then immediately switch to railing end.
User prompt
Railing Right should use alternating instances of RailingStart and RailingEnd like Railing Left. Also match scroll speed of railing right to railing left.
User prompt
Make sure the graphics are attached properly in the RailingLeft class
User prompt
Make sure RailingLeft layer is above the road and road2 layer.
User prompt
Railing left class should be initialized above road class
User prompt
Have the RailingLeft class use alternating instances of RailingStart and RailingEnd
User prompt
Rename Railing asset as RailingStart. Rename Railing2 asset as RailingEnd. Change code as necessary
User prompt
Combine Railing and Railing2 classes into a RailingLeft class. Keep assets and functionality the same.
User prompt
Create another scrolling railing and mirror it in the right side of the screen.
User prompt
Match railing scroll speed to road scroll speed.
User prompt
Use extra instances of railings to fill that gaps on the left. Alternating Railing and Railing 2 with no gaps.
User prompt
Remove right railing asset.
User prompt
Make sure the railing class is initialized above the road and road 2
User prompt
Using the current X axis placement of the left railing as reference, remove it and replace it the an endlessly scrolling railing using instances of Railing and Railing2 as necessary to make sure there are no gaps on screen. It should behave as the scrolling Road does. Do not change anything in the Road and Road2 classes.
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var road2 = game.addChild(new Road2());' Line Number: 173
User prompt
Using the Y position of the current railings, use Railing and Railing2 to create an endlessly scrolling railing.
User prompt
Flip the bottom two railings vertically and reattach
User prompt
Connect two more instances of the railings below the two existing ones.
User prompt
Move railings all the way down to the start of the road asset and pin there.
===================================================================
--- original.js
+++ change.js
@@ -156,9 +156,10 @@
* Game Code
****/
// Initialize the road instances
var road1 = game.addChild(new Road());
-var road2 = game.addChild(new Road2());
+var road2 = game.addChild(new Road());
+road2.y = -2732;
road2.x = 2048 / 2 * 0.94;
road1.x = 2048 / 2;
road1.y = 0;
road2.y = -2732;
View of a futuristic soldier from directly overhead. White armor with blue glowing cyberpunk details. Holding weapon forward.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
The lights of a futuristic city in the dark at night. Very high above it looking straight down like from an airplane or a map. Background for an endlessly scrolling game.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A big button that say Play to start playing a game. Use neon cyberpunk style.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Overhead view. A hovering robot with a tapered midsection with two bulky arms with claw like hands and a giant red āeyeā on top of its body. Looking straight down. Cyberpunk, black with red glowing highlights.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Overhead view. A heavily armored attack robot. Two arms with large gauntlet type fists. Four large red glowing eyes. Three distinct parts, body and two arms. Symmetrical design. Birds Eye view above them looking down on their head. Simple shapes. Low detail. Cyberpunk, black with red glowing highlights.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A red glowing line. Bright red core with subtle outer glow. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A blue transparent dome type shield. Simple graphics. Low details. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A ring of nuclear fire seen from overhead. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A thin robot with goggles riding a hover-bike. Twin blaster guns mounted on front. Top down view. Birds Eye view. Cyberpunk with red glowing highlights... Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Battle drone, circular. White with blue glowing highlights. Birds Eye view from overhead. Cyberpunk. Simple shapes.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
GameTheme
Music
TitleTheme
Music
HeroBlaster
Sound effect
Explosion
Sound effect
PowerUp
Sound effect
CloneSoldier
Sound effect
WeaponPowerUp
Sound effect
Drone
Sound effect
BinaryStorm
Sound effect
LaserCharge
Sound effect
LaserFire
Sound effect
BruiserStomp
Sound effect
RaiderSwoop
Sound effect
ShieldLevelUp
Sound effect
HeroHit
Sound effect
HeroScream
Sound effect