home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming for Teens (2nd Edition) / 3DGPFT2E.iso / Source / Chapter03 / demo03-07.bb < prev    next >
Encoding:
Text File  |  2009-01-21  |  273 b   |  16 lines

  1. ;demo03-07.bb - Fixed CallMe() 
  2. Global x
  3. ;call CallMe() function
  4. CallMe() 
  5.  
  6. ;concatenate "x is equal to" and the variable x
  7. Print "x is equal to " + x 
  8.  
  9. ;Delay five seconds
  10. Delay 5000
  11.  
  12. ;FUNCTION CALLME()
  13. ;sets x to 314
  14. Function CallMe()
  15.     x = 314
  16. End Function