User prompt
Make the boss easier
User prompt
Make more enemies
User prompt
Creat a boss at at score 10
User prompt
Enemy will die if touching throwables
User prompt
Thorwables will go in forward direction
User prompt
Make the thorwable go faster than player and if the enemy hit the thowrable it will dir and the score will be +10
User prompt
More slow
User prompt
Make player a bit slow
User prompt
Make the buuble speed higher
User prompt
Bubbles will be thrown backward
User prompt
Bubbles will be thorwn forward
User prompt
Make a throw button
User prompt
Please fix the bug: 'ReferenceError: boss is not defined' in or related to this line: 'if (self.intersects(boss)) {' Line Number: 61
User prompt
Which can be defeated by throwing bubbles
User prompt
Add a boss at score 10
User prompt
Make enemy
User prompt
Increase the space between the food
User prompt
Make the apple instead of black dots
User prompt
Make the brid fly left and right too
Initial prompt
Bird rise
===================================================================
--- original.js
+++ change.js
@@ -54,8 +54,21 @@
self.destroy();
}
};
});
+// Button class
+var Button = Container.expand(function () {
+ var self = Container.call(this);
+ var buttonGraphics = self.attachAsset('button', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ self.down = function (x, y, obj) {
+ var bubble = game.addChild(new Bubble());
+ bubble.x = bird.x;
+ bubble.y = bird.y;
+ };
+});
// Cloud class
var Cloud = Container.expand(function () {
var self = Container.call(this);
var appleGraphics = self.attachAsset('apple', {
@@ -123,19 +136,19 @@
});
var enemy = game.addChild(new Enemy());
enemy.x = Math.random() * 2048;
enemy.y = Math.random() * 2732;
+var button = game.addChild(new Button());
+button.x = 2048 / 2;
+button.y = 2732 - 150;
LK.gui.top.addChild(scoreTxt);
game.down = function (x, y, obj) {
bird.y -= 100;
if (x < bird.x) {
bird.x -= 100;
} else if (x > bird.x) {
bird.x += 100;
}
- var bubble = game.addChild(new Bubble());
- bubble.x = bird.x;
- bubble.y = bird.y;
};
var boss;
game.update = function () {
if (bird.y > 2732) {
Apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Bullet. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Bird. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Shoot button. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.