===================================================================
--- original.js
+++ change.js
@@ -43,13 +43,14 @@
var Game = Container.expand(function () {
var self = Container.call(this);
var background = self.createAsset('background', 'Background Image', 0, 0);
background.width = 2048;
- background.height = 2432;
+ background.height = 2732;
var overlayBox = self.createAsset('overlayBox', 'Overlay Box', 0, 0);
overlayBox.width = 1948;
overlayBox.x = 1024 - overlayBox.width / 2;
- overlayBox.height = 2732;
+ overlayBox.height = 2432;
+ overlayBox.y = 1450 - overlayBox.height / 2;
overlayBox.alpha = 0.3;
self.addChild(overlayBox);
var cubes = [];
var cubeSpeed = 5;
@@ -70,10 +71,9 @@
}
}
var leftCircle = self.createAsset('circle', 'Left Circle', .5, .5);
leftCircle.tint = 0xFFFFFF;
- leftCircle.alpha = 0.7;
- leftCircle.blend = 0.5;
+ leftCircle.alpha = 0.6;
leftCircle.x = -300 + leftCircle.width / 2;
leftCircle.y = 2732 / 2;
self.addChild(leftCircle);
var leftButton = self.createAsset('leftButton', 'Left Button', .5, .5);
@@ -83,10 +83,9 @@
leftButton.scale.set(1.5);
self.addChild(leftButton);
var rightCircle = self.createAsset('circle', 'Right Circle', .5, .5);
rightCircle.tint = 0xFFFFFF;
- rightCircle.alpha = 0.7;
- rightCircle.blend = 0.5;
+ rightCircle.alpha = 0.6;
rightCircle.x = 1860 + rightCircle.width / 2;
rightCircle.y = 2732 / 2;
self.addChild(rightCircle);
var rightButton = self.createAsset('rightButton', 'Right Button', .5, .5);
@@ -97,14 +96,21 @@
var spawnButton = self.createAsset('spawnButton', 'Spawn Button', .5, .5);
spawnButton.x = 1024;
spawnButton.y = 150;
self.addChild(spawnButton);
+ var speedLabel = new Text2('Speed:', {
+ size: 100,
+ fill: '#ffffff'
+ });
+ speedLabel.x = 1500;
+ speedLabel.y = 50;
+ self.addChild(speedLabel);
var speedText = new Text2(cubeSpeed, {
size: 100,
fill: '#ffffff'
});
speedText.x = 1500;
- speedText.y = 100;
+ speedText.y = 150;
self.addChild(speedText);
var speedUpButton = self.createAsset('speedUpButton', 'Speed Up Button', .5, .5);
speedUpButton.x = 1024 + 700;
speedUpButton.y = 150;
@@ -149,13 +155,13 @@
rightCircle.alpha = 0.8;
});
rightButton.on('up', function () {
rightButtonPressed = false;
- rightCircle.alpha = 0.5;
+ rightCircle.alpha = 0.6;
});
leftButton.on('up', function () {
leftButtonPressed = false;
- leftCircle.alpha = 0.5;
+ leftCircle.alpha = 0.6;
});
LK.on('tick', function () {
for (var i = 0; i < cubes.length; i++) {
if (leftButtonPressed) {
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.