Control
Run / Stop
most programs have a way to start running code and stop running code
IDEs and editing programs will often have play, pause, and stop buttons
Big scale example: Opening and exiting a program
Small scale example: Running only under certain conditions (turning on a switch, etc.)
Setup() and Loop()
many languages have and require two basic blocks of code
“Setup” function
runs once
only on the first frame
“Loop” function
runs once per frame
Runs Line by Line
when code is presented in blocks or text, the lines of code are run one at a time, in order
node-based languages will usually run left to right, from input to output
Last updated
Was this helpful?