User prompt
make obstacles move
User prompt
Please fix the bug: 'TypeError: self.getChildByName is not a function' in or related to this line: 'var speechBubble = self.getChildByName('speechBubble');' Line Number: 34
User prompt
make the obstacles able to move towards the player
User prompt
Please fix the bug: 'ReferenceError: speechBubble is not defined' in or related to this line: 'if (self.intersects(speechBubble)) {' Line Number: 34
User prompt
prevent the player from being able to collide with text
User prompt
make text intangible
User prompt
Allow the player to pass through text
User prompt
Prevent player from colliding with speech bubble text
User prompt
Make obstacle speech bubble text bigger
User prompt
Make the obstacles have speech bubbles above their heads with text inside
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'if (obstacles[i].x < -100) {' Line Number: 114
User prompt
reset obstacles and player positions when player hits obstacle
User prompt
reset game and score when player hits obstacles
User prompt
Upon obstacle collision, put player back to start
User prompt
Remove the game over screen
Initial prompt
Jumping Jack (Cowboy)
===================================================================
--- original.js
+++ change.js
@@ -88,8 +88,11 @@
jack.x = 300;
jack.y = 2000;
jack.isJumping = false;
jack.speedY = 0;
+ // Reset score
+ score = 0;
+ scoreTxt.setText(score);
}
if (obstacles[i].x < -100) {
obstacles[i].destroy();
obstacles.splice(i, 1);