Need to investigate whether or not it is much more efficient to do a setInterval for updating things we do every frame during the sketch. For example, the circle position and maybe when new circles spawn. This could potentially solve the issue of people having slow computers and the game displaying slower, so instead now they would have lower frames but the circles would move at the same speed so it doesn't matter?
If this works it would make allowing different framerates much easier.
(I found this out when a girl from work got 3rd on the leaderboard from playing on her phone 😠)
Need to investigate whether or not it is much more efficient to do a
setInterval
for updating things we do every frame during the sketch. For example, the circle position and maybe when new circles spawn. This could potentially solve the issue of people having slow computers and the game displaying slower, so instead now they would have lower frames but the circles would move at the same speed so it doesn't matter?If this works it would make allowing different framerates much easier.
(I found this out when a girl from work got 3rd on the leaderboard from playing on her phone 😠)