Code edit (6 edits merged)
Please save this source code
User prompt
make the switch between x position of left and right arms progressive
User prompt
add a switch between x position of left and right arms at the same rythm as the oscillation
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
Add a little randomness to the ocsillation but after a full sinusoid
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (10 edits merged)
Please save this source code
User prompt
Speed up the oscillation
Code edit (1 edits merged)
Please save this source code
Code edit (21 edits merged)
Please save this source code
User prompt
add also a movement to the legs
User prompt
in gamePlaying, ad a continuous balancing movement to the arms to simulate running
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: 'ReferenceError: T is not defined' in or related to this line: 'T; // EMP DEBUG !!!' Line Number: 301
Code edit (1 edits merged)
Please save this source code
Code edit (10 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'self.leftFoot.x += (self.targetPosture.leftFoot.x - self.leftFoot.x) * speed;' Line Number: 116
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'self.rightFoot.x += (self.targetPosture.rightFoot.x - self.rightFoot.x) * speed;' Line Number: 113
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'self.leftHand.x += (self.targetPosture.leftHand.x - self.leftHand.x) * speed;' Line Number: 108
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'self.rightHand.x += (self.targetPosture.rightHand.x - self.rightHand.x) * speed;' Line Number: 104
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'var handsAndLegsReached = Math.abs(self.rightHand.x - self.targetPosture.rightHand.x) < 1 && Math.abs(self.rightHand.y - self.targetPosture.rightHand.y) < 1 && Math.abs(self.leftHand.x - self.targetPosture.leftHand.x) < 1 && Math.abs(self.leftHand.y - self.targetPosture.leftHand.y) < 1 && Math.abs(self.rightLeg.x - self.targetPosture.rightLeg.x) < 1 && Math.abs(self.rightLeg.y - self.targetPosture.rightLeg.y) < 1 && Math.abs(self.leftLeg.x - self.targetPosture.leftLeg.x) < 1 && Math.abs(self.leftLeg.y - self.targetPosture.leftLeg.y) < 1 && Math.abs(self.head.x - self.targetPosture.head.x) < 1 && Math.abs(self.head.y - self.targetPosture.head.y) < 1 && Math.abs(self.rightFoot.x - self.targetPosture.rightFoot.x) < 1 && Math.abs(self.rightFoot.y - self.targetPosture.rightFoot.y) < 1 && Math.abs(self.leftFoot.x - self.targetPosture.leftFoot.x) < 1 && Math.abs(self.leftFoot.y - self.targetPosture.leftFoot.y) < 1;' Line Number: 83
User prompt
we will simplify the athlete : remove hands and foots
===================================================================
--- original.js
+++ change.js
@@ -285,16 +285,16 @@
LK.showGameOver(); // Show game over screen
}
});
// Simulate running by continuously balancing the arms and legs
- var runningArmAngle = Math.sin(LK.ticks / 5) * 0.5; // Oscillate arm angle to simulate running faster
- var runningLegAngle = Math.sin(LK.ticks / 5) * 0.3; // Oscillate leg angle to simulate running faster
+ var runningArmAngle = Math.sin(LK.ticks / 4) * 0.5; // Oscillate arm angle to simulate running faster
+ var runningLegAngle = Math.sin(LK.ticks / 4) * 0.3; // Oscillate leg angle to simulate running faster
athlete.rightArm.rotation = runningArmAngle;
athlete.leftArm.rotation = -runningArmAngle;
athlete.rightLeg.rotation = -runningLegAngle;
athlete.leftLeg.rotation = runningLegAngle;
athlete.rightArm.height = 200 * (0.5 + Math.abs(runningArmAngle));
- athlete.leftArm.height = 200 * (0.5 + Math.abs(0.5 - runningArmAngle));
+ athlete.leftArm.height = 200 * (0.5 + Math.abs(runningArmAngle));
}
/****************************************************************************************** */
/************************************** MAIN GAME LOOP ************************************ */
/****************************************************************************************** */
Elongated elipse with black top half and white bottom half.
full close and front view of empty stands. retro gaming style
delete
delete
Basquettes à ressort futuriste. vue de profile. Retro gaming style
a blue iron man style armor flying. Retro gaming style
a blue iron man style armor flying horizontally. Retro gaming style
round button with a big "up" arrow icon and a small line under it. UI
A big black horizontal arrow pointing left with centred text 'YOU' in capital letters, painted on an orange floor.. horizontal and pointing left
remove
gold athletics medal with ribbon. retro gaming style
a black oval with a crying smiley face.