User prompt
when the hero hits cube_fast the cube drop starts before the middle of the screen
User prompt
when a hero hits cube_fast the cube drop starts earlier by 25 percent
User prompt
when a hero hits cube_fast the cube drop starts earlier by 25 percent
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'onComplete')' in or related to this line: 'LK.loader.onComplete.add(function () {});' Line Number: 251
User prompt
don't start the game until all the assets are loaded.
User prompt
redo alarm and alarm2 blinks, make them blink three times, with a period of 1 time per second.
User prompt
Between cube_fast and cube_collapse there should be a gap of at least two columns
User prompt
put one cube_collapse in every 22 columns in front of the hero
User prompt
Between cube_fast and cube_collapse there should be a gap of at least two columns
User prompt
cube_fast and cube_collapse must not be in neighboring columns
User prompt
cube_fast and cube_collapse must not be in neighboring columns
User prompt
don't put cube_fast and cube_collapse next to each other.
User prompt
don't put cube_fast and cube_collapse next to each other.
User prompt
cube_fast and cube_collapse should always be placed at the very top of the posts
User prompt
cube_fast and cube_collapse should always be placed on top
User prompt
make the mutual arrangement of cube_fast and cube_collapse more randomized
User prompt
Alarm2 down 300
User prompt
Alarm2 blinks 2 times once per second
User prompt
put one cube_collapse in every 17 columns in front of the hero
User prompt
put one cube_collapse in every 17 columns in front of the hero
User prompt
display Alarm2 in the upper right corner of the screen when the hero hits cube_fast
User prompt
Fix Bug: 'Uncaught ReferenceError: AlarmDisplay is not defined' in or related to this line: 'var alarmDisplay = game.addChild(new AlarmDisplay());' Line Number: 219
User prompt
display Alarm2 in the upper right corner of the screen when the hero hits cube_fast
User prompt
there should be no cube_fast and cube_collapse in the first 100 columns
User prompt
place one cube_fast in every 10 column in front of the player
===================================================================
--- original.js
+++ change.js
@@ -73,12 +73,11 @@
};
self.makeCubesFall = function () {
for (var i = self.cubes.length - 1; i >= 0; i--) {
(function (index) {
- var delay = self.cubes[index] instanceof FastCube ? index * 187.5 : index * 250;
LK.setTimeout(function () {
self.cubes[index].isFalling = true;
- }, delay); // Delay between each cube falling, 25% earlier for FastCube
+ }, index * 250); // Delay between each cube falling
})(i);
}
};
self.isSliding = false;
@@ -319,11 +318,16 @@
}
// Move poles to the left to simulate hero running and make cubes fall after passing the middle
for (var i = 0; i < poles.length; i++) {
poles[i].x -= 5;
- if (poles[i].x < 2048 / 2 && !poles[i].hasMadeCubesFall) {
- poles[i].makeCubesFall();
- poles[i].hasMadeCubesFall = true;
+ if (!poles[i].hasMadeCubesFall) {
+ for (var j = 0; j < poles[i].cubes.length; j++) {
+ if (poles[i].cubes[j] instanceof FastCube) {
+ poles[i].makeCubesFall();
+ poles[i].hasMadeCubesFall = true;
+ break;
+ }
+ }
}
// Update each cube in the pole
for (var j = 0; j < poles[i].cubes.length; j++) {
poles[i].cubes[j].update();
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.