User prompt
make sure when hero is running, it is cycling between run1 and run2
User prompt
display hero run1 and run2 images when hero is running
User prompt
I don't see run1 and run2 animations
User prompt
fix bugs
User prompt
make sure run1 and run2 animation are used
User prompt
make hero to have animation
User prompt
make background parallax scroll slower than the foreground
User prompt
make the foreground parallex scroll slower
User prompt
make the double jump higher
User prompt
Create a Foreground Parallax.
User prompt
Every 10 hurdle, replace the hurdle with a boss.
User prompt
Delete the boss.
User prompt
fix bugs
User prompt
have hero move a little slower
User prompt
have hurdles on the ground
User prompt
after ten obstacles, have a big boss show up
User prompt
have hero jump higher
User prompt
after hero jump, have the hero fall back to the ground, and not in the sky
User prompt
fix bugs
User prompt
make hero jump when mouse is clicked
User prompt
lower the hero to the ground
User prompt
Make hero jump when spacebar is pressed
User prompt
Make SpacebarJump or LeftMouseButtonJump
User prompt
fix bugs
User prompt
Make hero jump when left mouse button is pressed
===================================================================
--- original.js
+++ change.js
@@ -108,16 +108,22 @@
self.heroJump.visible = true;
} else {
self.heroJump.visible = false;
self.heroIdle.visible = false;
- if (LK.ticks % 30 == 0) {
- if (self.heroRun1.visible) {
- self.heroRun1.visible = false;
- self.heroRun2.visible = true;
- } else {
- self.heroRun1.visible = true;
- self.heroRun2.visible = false;
+ if (self.isMovingRight) {
+ if (LK.ticks % 30 == 0) {
+ if (self.heroRun1.visible) {
+ self.heroRun1.visible = false;
+ self.heroRun2.visible = true;
+ } else {
+ self.heroRun1.visible = true;
+ self.heroRun2.visible = false;
+ }
}
+ } else {
+ self.heroRun1.visible = false;
+ self.heroRun2.visible = false;
+ self.heroIdle.visible = true;
}
}
// Add left and right movement
if (self.isMovingLeft) {