User prompt
`(stick.length >= platformTarget.x - platformCurrent.x) ` seems missing stick.x
User prompt
fix : the comment says "// Check if current stick reached the platform" but the code check ninja.x
User prompt
in game down if (!intro && !isStickGrowing && !isStickFalling) , if isNinjaMoving, check if current stick reached the platform, if so, create a nextStick to start to prepare th next round
User prompt
fix bug : player falls directly like there is no stick
User prompt
nextStick isn't well integrated, player falls directly
User prompt
the nextStick should move when ninjaMoves
User prompt
you forgot to make the nextStick fall
User prompt
implement it
User prompt
You let the ` && !isNinjaMoving` but this is the condition that prevent for growing the stick before arriving
Code edit (1 edits merged)
Please save this source code
User prompt
for bump, make it grow then decrease
User prompt
don't use scle, but width and height
User prompt
make score 'bump' when increased by using width and height animation
User prompt
Please fix the bug: 'TypeError: LK.effects.scaleObject is not a function' in or related to this line: 'LK.effects.scaleObject(scoreTxt, 1.5, 100, function () {' Line Number: 455
User prompt
make score 'bump' when increased
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
Ignore taps during intro
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: K is not defined' in or related to this line: 'K.clearInterval(startClearInterval);' Line Number: 649
Code edit (1 edits merged)
Please save this source code
User prompt
play start sound after press start
User prompt
wait 1sec before gameover
Code edit (1 edits merged)
Please save this source code
User prompt
in the intro, play the fallsound when ninja arrive on platform
===================================================================
--- original.js
+++ change.js
@@ -593,9 +593,9 @@
}, 1000);
} else if (!intro && !isStickGrowing && !isStickFalling) {
if (isNinjaMoving) {
// Check if current stick reached the platform
- if (stick.length >= platformTarget.x - platformCurrent.x) {
+ if (stick.length >= platformTarget.x - (platformCurrent.x + stick.x)) {
// Create nextStick to prepare for the next round
nextStick = new Stick();
nextStick.length = 0;
nextStick.height = nextStick.length;