===================================================================
--- original.js
+++ change.js
@@ -69,14 +69,9 @@
jumpToAtEnd = 0;
}
};
self.update = function () {
- var delta = targetWidth - currentWidth;
- if (delta < 1) {
- targetWidth = currentWidth = jumpToAtEnd;
- } else {
- currentWidth += delta / 8;
- }
+ currentWidth = targetWidth;
bonuseBarEnd.x = -bonusBarWidth + currentWidth + rightMargin;
bonusBarMiddle.width = currentWidth;
};
// bonuseBarEnd.x = -bonusLabel.width;
@@ -198,14 +193,9 @@
particle.blendMode = 1;
self.scale.set(.33, .33);
var cscale = .5;
self.update = function () {
- cscale += .02;
- self.scale.set(cscale, cscale);
- self.alpha = 1 - (cscale - .5) * 1.5;
- if (self.alpha < 0) {
- self.destroy();
- }
+ self.destroy();
};
});
var FireBallPowerupOverlay = Container.expand(function () {
var self = Container.call(this);
@@ -253,15 +243,9 @@
var speedX = Math.cos(angle) * 1;
var speedY = Math.sin(angle) * 1;
var rotationSpeed = Math.random() * 0.1 - 0.05;
self.update = function () {
- self.x += speedX * self.alpha;
- self.y += speedY * self.alpha;
- particleGraphics.rotation += rotationSpeed;
- self.alpha -= 0.01;
- if (self.alpha <= 0) {
- self.destroy();
- }
+ self.destroy();
};
});
var Grid = Container.expand(function () {
var self = Container.call(this);
@@ -765,14 +749,10 @@
});
label.anchor.set(0.5, 0);
self.addChild(label);
self.update = function () {
- self.y -= 7;
- self.alpha -= .05;
- if (self.alpha <= 0) {
- self.destroy();
- increaseScore(score);
- }
+ self.destroy();
+ increaseScore(score);
};
});
var ScoreMultipliers = Container.expand(function (baseValue) {
var self = Container.call(this);
@@ -806,10 +786,9 @@
});
var warningOffset = Math.random() * 100;
var speed = Math.random() * 1 + 1;
self.update = function () {
- warningOffset += speed;
- warning.alpha = (Math.cos(warningOffset / 50) + 1) / 2 * 0.3 + .7;
+ warning.alpha = 1;
};
warning.blendMode = 1;
warning.rotation = .79;
});
Circular white gradient circle on black background. Gradient from white on the center to black on the outer edge all around.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Soft straight Long red paint on black background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green notification bubble. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
triangle yellow 2d. Single Game Texture. In-Game asset. Blank background. High contrast. No shadows
rectangle purple 2d. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
round red 2d. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows