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.