User prompt
move buttons to left and right hand sides of display in middle
User prompt
add in buttons that will move the falling cube left or right
User prompt
add cube drop code in
User prompt
add ability to move cube left or right while it falls
User prompt
addd function to allow cubes to stack in rows at bottom of screen
User prompt
add mouse click to spawn new cube and for it to drop down screen
User prompt
remove click to sapwn feature
User prompt
create a random spawning point along x axis
User prompt
only drop cube when clicked on
User prompt
game starts when button pressed
Initial prompt
Cube Stack
===================================================================
--- original.js
+++ change.js
@@ -50,14 +50,14 @@
startButton.destroy();
}
});
var leftButton = self.createAsset('leftButton', 'Left Button', .5, .5);
- leftButton.x = 2048 / 4;
- leftButton.y = 2732 - leftButton.height;
+ leftButton.x = 0 + leftButton.width / 2;
+ leftButton.y = 2732 / 2;
self.addChild(leftButton);
var rightButton = self.createAsset('rightButton', 'Right Button', .5, .5);
- rightButton.x = 2048 * 3 / 4;
- rightButton.y = 2732 - rightButton.height;
+ rightButton.x = 2048 - rightButton.width / 2;
+ rightButton.y = 2732 / 2;
self.addChild(rightButton);
self.on('down', function (obj) {
var event = obj.event;
var pos = event.getLocalPosition(self);
arrow pointing left, transparent background, cartoon style, no shadow Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white square, 2d in-game asset, blank background, high contrast, no shadows, single game texture Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
vertical slider. 1000 pixels tall and 50 pixels wide. with numbers 1 at top and 10 at bottom. 2d in-game asset. blank background no shadows. high contrast Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white square, 2d in-game asset, blank background, high contrast, no shadows, single game texture Single Game Texture. With word DROP in middle Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
background image 2732 high x 2048 wide. high contrast, light cartoon image of colored stacked cubes. out in open fields. Single Game Texture. In-Game asset. 3d. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stone square, bevelled edges. 2d in-game asset, blank background, high contrast, no shadows, single-game texture. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Triangle pointing left, transparent background, cartoon style, no shadow Single Game Texture. In-Game asset. 2d. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.