User prompt
Determine a "game field" area that starts at (0, 300) and ends at (2048, 2543). Ensure birds are initially positioned inside this area, each bird randomly placed at 1/3 of this area
User prompt
Move monkey initial position setup to inside setupLevel
User prompt
Move monkey initial position setup to setupLevel
User prompt
Setup monkey initial position as first thing in setupLevel
User prompt
Bird starting y position should be a random between 300 and above the monkey
User prompt
topBranch height should be hardcoded as 300 and topBranch y position should be hardcoded as 150
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'y')' in this line: 'newBird.y = Math.random() * (self.topBranch.y + self.topBranch.height, monkey.y);' Line Number: 162
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'y')' in this line: 'newBird.y = Math.random() * (self.topBranch.y + self.topBranch.height, monkey.y);' Line Number: 161
User prompt
Bird's starting Y position must be random between below the top branch and above the monkey. Therefore, only setup birds after the top branch is setup
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'y')' in this line: 'self.y = Math.max(self.topBranch.y + self.topBranch.height, Math.min(monkey.y - self.height, self.y + Math.random() * 10 - 5));' Line Number: 66
User prompt
Bird Y position must be random between below the top branch and above the monkey
User prompt
Brid speed should be random between the current speed and half of it
User prompt
Ensure there are is at least 1 branch at every 15th of the screen
User prompt
Ensure there is at least one branch at every 3rd of the screen
User prompt
randomly position the 15 branches snapping them to an imaginary grid
User prompt
Have 15 branches on a level
User prompt
When determining branches positions, select from a grid-like positioning where there is 10% spacing between branches (vertically and horizontally)
User prompt
Place the banana icon at the left of the banana's number
User prompt
Improve the banana's indicator by displaying a banana icon instead of the text "Bananas:"
User prompt
Make spider move a greater distance, 3 times height
User prompt
Remove the intro pop-up
User prompt
It's also game over when touching a spider
User prompt
When selecting the spider's branch, select among those located on the first 2/3 of the screen
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'y')' in this line: 'return branch && branch.y < 2 / 3 * 2732 && branch.y > monkey.y + monkey.height;' Line Number: 161
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'y')' in this line: 'return branch.y < 2 / 3 * 2732 && branch.y > monkey.y + monkey.height;' Line Number: 161
===================================================================
--- original.js
+++ change.js
@@ -158,11 +158,9 @@
branches[0] = self.topBranch;
for (var i = 0; i < 2 + level; i++) {
var newBird = new Bird();
newBird.x = Math.random() * 2048;
- if (self.topBranch) {
- newBird.y = Math.random() * (self.topBranch.y + self.topBranch.height - 300) + 300;
- }
+ newBird.y = Math.random() * ((2543 - 300) / 3) + 300;
birds.push(newBird);
self.addChild(newBird);
}
};
A tree branch with green leaves Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A preying white bird flying ahead Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A cute monkey with arms up Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Wood texture Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Bananas Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoony looking spider, with two big round eyes Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
One green vine Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.