Code edit (1 edits merged)
Please save this source code
User prompt
before gameover, show a screen for five seconds, with the text: "Orbits jumped: XX\nEnergy Collected: YY\nFinal Score: (XX+YY) = ZZ"
Code edit (15 edits merged)
Please save this source code
User prompt
when a collectible is collected, show a little textlabel with the text "+1" floating up from the point instead of flashing the screen blue.
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'update')' in or related to this line: 'particles[i].update();' Line Number: 650
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of null (reading 'width')' in or related to this line: 'self.radius = self.parent.width / 2 * (1900 / self.parent.width) - self.width / 2; // * (100 / self.width);' Line Number: 59
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (7 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'update')' in or related to this line: 'particles[i].update();' Line Number: 626
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (11 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: collectible is not a constructor' in or related to this line: 'var collectible = new collectible();' Line Number: 130
Code edit (1 edits merged)
Please save this source code
Code edit (13 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: scoreText is not defined' in or related to this line: 'scoreText.x -= 20;' Line Number: 384
Code edit (1 edits merged)
Please save this source code
Code edit (5 edits merged)
Please save this source code
User prompt
make a fullscreen background asset and attach it before anything else
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (17 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: particles is not defined' in or related to this line: 'particles.push(particle);' Line Number: 386
===================================================================
--- original.js
+++ change.js
@@ -47,14 +47,18 @@
}
// Add powerup to some orbits
if (orbitsCreated % 17 == 0) {
self.numBarriers = 0;
+ self.addPowerup();
+ //orbitGraphics.tint %= "#222222";
+ /*
self.addPowerup(0);
//orbitGraphics.tint %= 0x222222;
self.addPowerup(1);
self.addPowerup(2);
self.addPowerup(3);
self.addPowerup(4);
+ */
}
//self.barrierSpeed = Math.random() * currentOrbitIndex + 1 / 20;
self.barrierSpeed = 0.01 + Math.random() * 0.015 * self.direction;
for (var j = 0; j < this.numBarriers; j++) {
@@ -87,15 +91,18 @@
};*/
self.addChild(barrier);
obstacles.push(barrier);
};
- self.addPowerup = function (index) {
- var powerup = new Powerup1();
- powerup.angle = Math.PI * 1.5 - index * 0.08;
- powerup.scale.x = 1 - (index + 1) * 0.15;
- powerup.scale.y = 1 - (index + 1) * 0.15;
- self.addChild(powerup);
- obstacles.push(powerup);
+ //self.addPowerup = function (index) {
+ self.addPowerup = function () {
+ for (var i = 0; i < 5; i++) {
+ var powerup = new Powerup1();
+ powerup.angle = Math.PI * 1.5 - i * 0.08;
+ powerup.scale.x = 1 - (i + 1) * 0.15;
+ powerup.scale.y = 1 - (i + 1) * 0.15;
+ self.addChild(powerup);
+ obstacles.push(powerup);
+ }
};
});
var Particle = Container.expand(function (i) {
var self = Container.call(this);
@@ -227,9 +234,9 @@
/****
* Game Code
****/
var fullscreenBackground = LK.getAsset('fullscreenBackground', {
- anchorX: 0.51,
+ anchorX: 0.507,
anchorY: 0.46,
x: 2048 / 2,
y: 2732 / 2,
alpha: 0.9
@@ -352,15 +359,18 @@
// Indigo
0x8B00FF // Violet
];*/
// Initialize player
-var scoreTxt = new Text2('0', {
+var scoreText = new Text2('0', {
size: 150,
+ align: 'center',
fill: "#ffffff",
stroke: "#000000",
- strokeThickness: 20
+ strokeThickness: 20,
+ anchorX: 0.5
});
-LK.gui.top.addChild(scoreTxt);
+LK.gui.top.addChild(scoreText);
+scoreText.x -= 20;
// Initialize orbits
function createOrbits() {
for (var i = 0; i < 5; i++) {
var orbit = game.addChild(new Orbit());
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.