@kdmb declared the function …
draw() will invoke that function every frame, original post only wants it to be invoked when the ArrowUp key is pressed.
@kdmb declared the function …
draw() will invoke that function every frame, original post only wants it to be invoked when the ArrowUp key is pressed.