User prompt
remove one of the spiders
User prompt
add nice animation effect to hippo
User prompt
make the branches are located randomly
User prompt
Make diagonal stairs with the branches.
User prompt
Make the branches line up like ladders to reach the watermelons
User prompt
hippo asset looks deformed when you start playing, please fix it
User prompt
There is a watermelon and a branch together that is not working. Please fix it
User prompt
the game is to hard to play
User prompt
make it hadder
User prompt
add more watermelons to grab
User prompt
if hippo grabs a watermelon, the watermelons must disappear and ad a point
User prompt
The hippo has to grab watermelons while climbing through the bushes
User prompt
Please fix the bug: 'Uncaught ReferenceError: watermelons is not defined' in or related to this line: 'for (var i = 0; i < watermelons.length; i++) {' Line Number: 191
User prompt
replace banana text yo watermelons
User prompt
make the game a little easier
User prompt
make the hippo bounce when jumping
User prompt
Add one more spider that moves horizontally
User prompt
go back and remove the last step
User prompt
add a bigger watermelon prize at the top
User prompt
remove the top branch
User prompt
I will like to add a background with a forest and a river
User prompt
Migrate to the latest version of LK
Remix started
Copy Monkey's Leap
===================================================================
--- original.js
+++ change.js
@@ -1,14 +1,7 @@
/****
* Classes
****/
-var Banana = Container.expand(function () {
- var self = Container.call(this);
- var bananaGraphics = self.attachAsset('banana', {
- anchorX: 0.5,
- anchorY: 0.5
- });
-});
var Bird = Container.expand(function () {
var self = Container.call(this);
var birdGraphics = self.attachAsset('bird', {
anchorX: 0.5,
@@ -157,10 +150,10 @@
/****
* Game Code
****/
-// Add the background image to the game
// Add the background image
+// Add the background image to the game
var background = game.addChild(LK.getAsset('background', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2,
@@ -194,18 +187,18 @@
newBird.y = i * (2732 / (2 + level)) + 300;
birds.push(newBird);
game.addChild(newBird);
}
- for (var i = 0; i < bananas.length; i++) {
- bananas[i].destroy();
+ for (var i = 0; i < watermelons.length; i++) {
+ watermelons[i].destroy();
}
- bananas = [];
+ watermelons = [];
for (var i = 0; i < 5; i++) {
- var newBanana = new Banana();
- newBanana.x = Math.random() * 2048;
- newBanana.y = Math.random() * 2732;
- game.addChild(newBanana);
- bananas.push(newBanana);
+ var newWatermelon = new Watermelon();
+ newWatermelon.x = Math.random() * 2048;
+ newWatermelon.y = Math.random() * 2732;
+ game.addChild(newWatermelon);
+ watermelons.push(newWatermelon);
}
for (var i = 0; i < spiders.length; i++) {
spiders[i].destroy();
}
@@ -268,15 +261,15 @@
fill: '#ffffff'
});
levelTxt.anchor.set(0, 0);
LK.gui.topLeft.addChild(levelTxt);
-var bananaCount = 0;
-var bananaTxt = new Text2('Bananas: ' + bananaCount, {
+var watermelonCount = 0;
+var watermelonTxt = new Text2('Watermelons: ' + watermelonCount, {
size: 75,
fill: '#ffffff'
});
-bananaTxt.anchor.set(1, 0);
-LK.gui.topRight.addChild(bananaTxt);
+watermelonTxt.anchor.set(1, 0);
+LK.gui.topRight.addChild(watermelonTxt);
var monkey = game.addChild(new Monkey());
monkey.x = 1024;
monkey.y = 2732 - monkey.height;
LK.on('tick', function () {
@@ -311,14 +304,14 @@
LK.showGameOver();
}
birds[i]._update_migrated();
}
- for (var i = 0; i < bananas.length; i++) {
- if (monkey.intersects(bananas[i])) {
- bananas[i].destroy();
- bananas.splice(i, 1);
- bananaCount++;
- bananaTxt.setText('Bananas: ' + bananaCount);
+ for (var i = 0; i < watermelons.length; i++) {
+ if (monkey.intersects(watermelons[i])) {
+ watermelons[i].destroy();
+ watermelons.splice(i, 1);
+ watermelonCount++;
+ watermelonTxt.setText('Watermelons: ' + watermelonCount);
}
}
for (var i = 0; i < spiders.length; i++) {
spiders[i]._update_migrated();
Cartoony looking spider, with two big round eyes Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cut watermelon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bush. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tree. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
funny bird. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.