Jump to content

Game Tutorial


naveenraj2001

Recommended Posts

X - Height - Gap is used so that the the second obstacles reach the bottom of the screen. Though "y" would be a better choice (canvas.height) this is immaterial as the code always runs with the width as larger than the height, which is the requirement for the bottom obstacle.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...