Basic Newtonian physics: constant force results constant acceleration, zero force results constant velocity.
I was applying a constant force to the small wall. It was accelerating like crazy and was going out of control. So i made sure to rather update its velocity, so i can control how fast it goes and if it should accelerate to increase the challenge. Now each time taco jump over the small wall, it comes back a bit faster, giving the impression that taco run faster.
I explored a bit collision. On collision with the small wall, Taco fall through the ground and the small wall stop moving. Just hit SPACE again the reset the game and start again. But as you may see at the end of the video, there's a bug... the small wall continue to move although Taco has been hit. Let's fix that next time and maybe scroll the background =)
No comments:
Post a Comment