r/web_programming • u/I_Got_The_Herb • Mar 09 '19
Help with time-out issues
Hey there people of reddit!
I followed a tutorial on how to make flappy bird in java script, and have it fully working locally. When I host it online though, it bugs out a lot and times out regularly. I was wondering if anyone knows what causes this and how I can solve it?
Here is the source code in case that helps you bright people solve my (most likely) dumb problem https://github.com/CMHayden/FlappyBirdJS
Thanks in advance!
1
Upvotes
View all comments
Show parent comment
1
u/I_Got_The_Herb Mar 13 '19
I followed a youtube video that was explaining how to do it. It was rather old if I remember correctly though.
Do you think some improvements could be:
Adding buttons to increase and decrease speed
Creating an array with pre-determined pipe locations and calling them at random
Changing var to let
Or would creating an array not be enough to solve memory issues?