===================================================================
--- original.js
+++ change.js
@@ -418,9 +418,10 @@
});
// Orbit class
var Orbit = Container.expand(function () {
var self = Container.call(this);
- var orbitGraphics = self.attachAsset('orbit1', {
+ //var orbitGraphics = self.attachAsset('orbit1', {
+ var orbitGraphics = self.attachAsset('circleExperiment', {
anchorX: 0.5,
anchorY: 0.5,
tint: rainbowColors[colorOffset % rainbowColors.length]
});
@@ -438,9 +439,9 @@
if (i == 4) {
//self.width = 100;
//self.height = 100;
}
- console.log("Orbit created with id, x, y, width, height:", i, self.x, self.y, self.width, self.height);
+ //console.log("Orbit created with id, x, y, width, height:", i, self.x, self.y, self.width, self.height);
self.barrierSpeed = maxEnemySpeed * Math.random() * self.direction;
// First orbit is always empty.
if (i == 0) {
return;
@@ -449,8 +450,10 @@
// Every 17th orbit is reserved for a powerup.
if (orbitsCreated % 17 == 0) {
self.addCollectible(1);
self.addPowerup();
+ orbitGraphics.tint = 0xffffff;
+ //orbitGraphics.alpha = 0.8;
return;
}
if (orbitsCreated > 50) {
// Exploding enemy possible.
@@ -877,9 +880,9 @@
};
var showPowerupText = function showPowerupText() {
powerupText = new Text2('Powerup Activated!\nAll visible obstacles cleared!\nTap to continue', {
size: 100,
- fill: 0xBBBBBB,
+ fill: 0x222222,
align: 'center'
});
powerupText.y = 2700 / 2;
powerupText.x = 2048 / 2;
@@ -1127,8 +1130,14 @@
t.destroy();
t._destroyed = true;
LK.getSound('collectSound').play();
collectiblesCollected++;
+ LK.setScore(LK.getScore() + 1);
+ scoreText.setText(LK.getScore());
+ if (LK.getScore() > storage.bestScore) {
+ storage.bestScore = LK.getScore();
+ bestScoreTxt.setText('Best Score\n' + storage.bestScore);
+ }
var floatingText = new FloatingText("+1", player.x, player.y);
game.addChild(floatingText);
} else {
player.visible = false;
@@ -1141,20 +1150,27 @@
var angle = i / 30 * Math.PI * 2;
var trail = new ExplosionTrail(player.x + Math.cos(angle) * 10, player.y + Math.sin(angle) * 10);
game.addChild(trail);
}
+ /*
var orbitsJumped = LK.getScore();
var energyCollected = collectiblesCollected;
var finalScore = orbitsJumped + energyCollected;
LK.setScore(finalScore);
var gameOverScreen = new GameOverScreen(orbitsJumped, energyCollected, finalScore);
+ gameOverScreen.x = 0;
+ gameOverScreen.y = -750;
game.addChild(gameOverScreen);
scoreText.setText(finalScore);
- bestScoreTxt.setText(finalScore);
+ if (finalScore > storage.bestScore) {*/
+ if (LK.getScore() > storage.bestScore) {
+ bestScoreTxt.setText('Best Score\n' + LK.getScore());
+ storage.bestScore = LK.getScore();
+ }
GAME_ENDED = true;
LK.setTimeout(function () {
LK.showGameOver();
- }, 6000);
+ }, 300);
break;
}
}
} else {
Make the circle completely black on all pixels.
A white star. Flat vector art.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
The line-color should be white, and the circle a bit thinner.
a wonderful but not very dense starfield. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A glowing blue comic energy orb. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
I'd like a top down image of a super fine and thin white empty cicular band on a transparent background. It should be flatly white and with no other details, and of course perfectly round with blank space in the center. The band's width should be less than one percent of the width of the circle itself, as if a 1 cm band were laid out in a circle with a diameter of 100 cm. Single Game Texture. In-Game asset. 2d. Blank background.