Updating global variables inside draw() function

Not at all.

On the contrary, the purpose of a running program is to handle and to work with changing variables.

When you think of a game, everything changes fast

1 Like