Game Development Reference
In-Depth Information
function draw()
background(100,120,160,255)
font("Georgia")
fill(255)
fontSize(20)
textWrapWidth(70)
text("Hello World from Codea", WIDTH/2, HEIGHT/2)
end
When you run these functions, you'll see the text “Hello World from Codea” in the middle of the
screen, as shown in Figure 12-2 . The Codea run screen has two property windows on the left side,
which display parameters and the console output window. The rest of the screen displays the
graphical output of the code.
Figure 12-2. Hello World using Codea
Note You can remove the two left-hand windows by using the function displayMode(FULLSCREEN)
to give yourself more screen space.
The parameters can be used for interactive input to the code. These are typically in the form of
sliders that can help set ranges.
 
Search WWH ::




Custom Search