Dr.Linux Posted August 20, 2014 Share Posted August 20, 2014 I want to make a endless runner in java script. I obviously know I have to use parallax, but I want to generate a new platform every time the old one reaches a specific x coordinate. Would I use a function to spawn a new rectangle, create a new object and put it in the array inside the function. Thanks! Quote Link to comment Share on other sites More sharing options...
Dr.Linux Posted August 20, 2014 Author Share Posted August 20, 2014 Actually, could I just make a function with 4 variables(x,y,width,height), and add a prototype function for speed? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.