Remix started
Copy Flap & Float
User prompt
Instead of bouncing off the wall automatically, allow the bird to 'slide' down the wall, until we jump again.
User prompt
We need to kill the x speed of the bird so it doesn't go through the wall
User prompt
When you are on the wall and you jump, add some x speed so the bird jumps to the other side
User prompt
If we are on the left wall we need to add positive x speed, and the right wall needs to add negative x speed
User prompt
Increase the jump / x speed to 30
User prompt
Remove the x speed conditions on intersection as it's preventing the mousedown/jump logic from working
User prompt
Remove the obstacle shadow, and remove the obstacle rotation
User prompt
Rotate the obstacle graphics 90deg
User prompt
Rotate the obstacle 90deg more
Code edit (7 edits merged)
Please save this source code
User prompt
Horizontally flip obstacles which are on the right
Code edit (1 edits merged)
Please save this source code
User prompt
Remove the tutorial text
User prompt
Make the score text white. Make the background dark gray.
User prompt
Only allow jumping in air once
User prompt
Disable losing when you hit the top of the screen
Code edit (1 edits merged)
Please save this source code
User prompt
Ensure obstacles graphics are in front of the walls
User prompt
Remove the rotation of the bird when flying. Flip the bird graphic when it's facing left.
Code edit (6 edits merged)
Please save this source code
User prompt
Add a background of a neon cityscape
Code edit (6 edits merged)
Please save this source code
User prompt
Align background to the bottom and center
User prompt
Ensure the player let's go of the mouse after landing on the wall, they need to tap again before jumping
===================================================================
--- original.js
+++ change.js
@@ -35,9 +35,10 @@
var Obstacle = Container.expand(function () {
var self = Container.call(this);
var obstacleGraphics = self.attachAsset('obstacle', {
anchorX: 0.5,
- anchorY: 0.5
+ anchorY: 0.5,
+ rotation: 1
});
self.speed = 5;
self.move = function (speed) {
self.y += speed;