User prompt
move center left and right messages behind lander on z axis
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: rightThruster is not defined' in this line: 'rightThruster.visible = false;' Line Number: 88
User prompt
Fix Bug: 'ReferenceError: rightThruster is not defined' in this line: 'rightThruster.visible = false;' Line Number: 88
User prompt
Fix Bug: 'ReferenceError: leftThruster is not defined' in this line: 'leftThruster.visible = false;' Line Number: 81
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'x')' in this line: 'downThruster.x = lander.x;' Line Number: 407
User prompt
lander should be infront of messages in z axis
User prompt
add alfa of .5 to left rigth center message and dotted lines
User prompt
add more space between dots of dotted line
Code edit (1 edits merged)
Please save this source code
User prompt
move left center and right message 200 pixels higher
User prompt
On game start show 3 messages centered between the dotted lines. They should read, Left, Center and Right.
User prompt
add two dotted lines that split the screen in thirds vertically
User prompt
On platform reposition, make sure the whole asset is shown and no part is outside of the screen border
User prompt
After lander respwan restbx speed to 0
Code edit (1 edits merged)
Please save this source code
User prompt
Om lander respawn set x speed to 0
User prompt
platform should start moving on level 10
User prompt
asteroids should starts spawning on level 5
Code edit (1 edits merged)
Please save this source code
User prompt
Start moving method should have a 1 second pause before repositioning the platform
User prompt
When lander lands successfully, keep movingplatform in the same position of the impact for 1 second.
User prompt
Plaform asset should remain in its place for 1 second before respawn when lander lands
User prompt
Platform show always be placed in the 90% size center of x
User prompt
Hide lander for 1 second on respawn after succesfull landing
===================================================================
--- original.js
+++ change.js
@@ -73,13 +73,13 @@
ySpeedTxt.setText('Y Speed: ' + self.speedY.toFixed(2)); // Update Y Speed display
}
// Update thruster position and visibility
if (self.thrustDirection === 'left') {
- leftThruster.x = self.x - self.width / 2;
- leftThruster.y = self.y;
- leftThruster.visible = self.isThrusting;
+ self.leftThruster.x = self.x - self.width / 2;
+ self.leftThruster.y = self.y;
+ self.leftThruster.visible = self.isThrusting;
} else {
- leftThruster.visible = false;
+ self.leftThruster.visible = false;
}
if (self.thrustDirection === 'right') {
rightThruster.x = self.x + self.width / 2;
rightThruster.y = self.y;