Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
Your question isnt clear but the basic game loop is handle input update components draw components and setInterval takes a reference to a function so you dont use the () on moveeverything put draweverything(); in the last line of the moveeverything function.
28th Oct 2019, 10:56 AM
「HAPPY TO HELP」
「HAPPY TO HELP」 - avatar