Setting Up the Game Elements

Now we’ll create the game loop for the program using the same code we’ve used throughout the book. Add the code below:

; Creating a light
      light=CreateLight()
; The following code makes our program run
While Not KeyDown(ESC_KEY)
Renderworld
Flip
Wend
End

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.171.84