Code edit (16 edits merged)
Please save this source code
User prompt
for ninja run anim, use the following sequence : 1,2,1,3,4,3
Code edit (1 edits merged)
Please save this source code
Code edit (6 edits merged)
Please save this source code
User prompt
accelerate the run animation
Code edit (3 edits merged)
Please save this source code
User prompt
use ninjaRun, ninjaRun2 and ninjaRun3 to animate ninja running
User prompt
add ninjaRun2 and ninjaRun3 in Ninja class
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: clouds is not defined' in or related to this line: 'clouds.children.forEach(function (cloud) {' Line Number: 475
User prompt
add the paralax movement to the clouds too
Code edit (1 edits merged)
Please save this source code
User prompt
make clouds move slowly to the left the re-appear from the right
Code edit (3 edits merged)
Please save this source code
User prompt
add clouds at init time
User prompt
add a class clouds to the game
Code edit (4 edits merged)
Please save this source code
User prompt
extract the code of update when isReturningToBase to a separate method
Code edit (1 edits merged)
Please save this source code
User prompt
midground1 and foreground2 should only move when platforms move
User prompt
use NINJA_MOVEMENT_SPEED in handleBackgroundMovement
Code edit (2 edits merged)
Please save this source code
User prompt
when ninja runs, apply the same ratios to foreground and midground movement as when returning to base
Code edit (2 edits merged)
Please save this source code
User prompt
Loop: true doesnβt work. Use lk.setinterval with value 500
===================================================================
--- original.js
+++ change.js
@@ -453,9 +453,9 @@
foreground2.x = foreground1.x + 2048;
}
// Move clouds to the left
clouds.children.forEach(function (cloud) {
- cloud.x += distance * 0.2;
+ cloud.x += distance * 0.2 * 0;
if (cloud.x + cloud.width / 2 < 0) {
cloud.x = 2048 + cloud.width / 2;
}
});