Recreating Doodle Jump in Canvas - Platforms spawning out of reach
- by kushsolitary
I have started to recreate Doodle Jump in HTML using Canvas. Here's my current progress. As you can see, if you play it for a few seconds, some platforms will be out of the player's reach. I don't know why is this happening. Here's the code which is responsible for the re-spawning of platforms.
//Movement of player affected by gravity
if(player.y…