User prompt
Put cube_collapse in some columns instead of cube
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'attachAsset')' in or related to this line: 'var collapseGraphics = self.attachAsset('cube_collapse', {' Line Number: 23
User prompt
Put cube_collapse in some columns
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'update')' in or related to this line: 'var originalUpdate = self.update;' Line Number: 23
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'attachAsset')' in or related to this line: 'self.attachAsset('cube_collapse', {' Line Number: 23
User prompt
Put cube_collapse in some columns
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'attachAsset')' in or related to this line: 'self.attachAsset('cube_collapse', {' Line Number: 89
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'attachAsset')' in or related to this line: 'self.attachAsset('cube_collapse', {' Line Number: 89
User prompt
Put cube_collapse in some columns, cube_collapse must appear once every 30 seconds of the game.
User prompt
cube_collapse must necessarily appear once every 30 seconds of the game
User prompt
cube_collapse should appear once every 30 seconds of the game.
User prompt
cube_collapse should appear once every 30 seconds of the game.
User prompt
cube_collapse should appear once every 30 seconds of the game.
User prompt
cube_collapse should never occur in neighboring columns
User prompt
cube_collapse should never occur in neighboring columns
User prompt
modulus condition 13
User prompt
the appearance of cube_collapse should be more regular
User prompt
make the appearance of cube_collapse more rare but regular.
User prompt
Fix Bug: 'Uncaught ReferenceError: i is not defined' in or related to this line: 'game.lastCollapsiblePoleIndex = i;' Line Number: 44
User prompt
cube_collapse should never occur in neighboring columns
User prompt
Fix Bug: 'Uncaught ReferenceError: i is not defined' in or related to this line: 'game.lastCollapsiblePoleIndex = i;' Line Number: 44
User prompt
cube_collapse should never occur in neighboring columns
User prompt
Fix Bug: 'Uncaught ReferenceError: lastCollapsiblePoleIndex is not defined' in or related to this line: 'if (lastCollapsiblePoleIndex === -1 || lastCollapsiblePoleIndex !== poles.length - 1) {' Line Number: 41
User prompt
cube_collapse should never occur in neighboring columns
User prompt
cube_collapse must not occur in neighboring columns
===================================================================
--- original.js
+++ change.js
@@ -32,17 +32,18 @@
}
};
});
// Class for the poles consisting of cubes
-var Pole = Container.expand(function () {
+var Pole = Container.expand(function (index) {
var self = Container.call(this);
+ self.index = index;
self.cubes = [];
self.addCube = function () {
var cube;
- if (game.lastCollapsiblePoleIndex === undefined || game.lastCollapsiblePoleIndex < i - 1) {
+ if (game.lastCollapsiblePoleIndex === undefined || game.lastCollapsiblePoleIndex < self.index - 1) {
cube = (self.cubes.length + 1) % 10 === 0 ? new CollapsibleCube() : new Cube();
if ((self.cubes.length + 1) % 10 === 0) {
- game.lastCollapsiblePoleIndex = i;
+ game.lastCollapsiblePoleIndex = self.index;
}
} else {
cube = new Cube();
}
@@ -130,9 +131,9 @@
var poleSpacing = 2;
var poleWidth = 100 + poleSpacing;
var numPoles = Math.ceil(2048 / poleWidth);
for (var i = 0; i < numPoles; i++) {
- var pole = game.addChild(new Pole());
+ var pole = game.addChild(new Pole(i));
pole.x = i * poleWidth;
pole.y = 2732 - 50; // Align base of pole with bottom of the screen and raise by 50 pixels
for (var j = 0; j < 10; j++) {
// Add 10 cubes to each pole to make them higher
girl sitting on Wrecking Ball, cartoon style.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
construction cranes on the sides of the frame, depth of field blur, cartoon style, black and white. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
"ALARM" text bubble, comic style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the surface is gray, concrete with a black square in the center. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Wrecking Ball with eyes, cartoon style.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the surface is red, concrete with a black square in the center.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
"ALARM" text bubble yellow, comic book style.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the surface is yellow, concrete with a black square in the center. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.