Léim Clón

This week we set up the first part of our Dino jump clone

We first created our tile map for our level. Two rows of blocks along the bottom of the screen and then we highlighted them as walls so our player can walk on them

We then created our main character and set its spawn coordinates

We then created gravity by setting the acceleration on the Y axis to always pull down

The last thing we did was set up the jump mechanics using the space key . We created a fix to stop our character double jumping. We do this by checking are we touching the ground before we jump

Have a look at the code so far below and test it in the simulator

Previous
Previous

Jumpy Clone Finished

Next
Next

Asteroids Part 2