HTML and CSS Reference
In-Depth Information
How the Game Works
This game is set up with the same basic structure as “Hello World!”
canvasApp()
is the main
function,andallotherfunctionsaredefinedaslocalto
canvasApp()
.Weusea
drawScreen()
function to render text on the canvas. However, there are some other functions included as
well, which are described next.