Topic:   [BlitzMax] Basic Game Template   (Read 1724 times)


0 Members and 1 Guest are viewing this topic.

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
    • View Profile
[BlitzMax] Basic Game Template
« on: May 12, 2009, 01:46:47 PM »
This is the basic structure of most BlitzMax games.
Code: [Select]
'This is what a comment looks like 
AppTitle$ = "Application Name"  'Set the title of the window
Graphics 640,480  'Set the graphics window to be 640x480
While Not KeyDown(Key_ESCAPE) Or AppTerminate()
     Cls
     SetColor 0,0,255  'Set the fill color of the rectangle
     DrawRect 100,100,5,10  'Draw a rectangle at x=100 y=100 that is 5x10
     Flip
Wend

Ghost
« Last Edit: May 13, 2009, 02:27:31 AM by admin »

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
    • View Profile
Re: [BlitzMax] Basic Game Template
« Reply #1 on: May 13, 2009, 02:15:22 AM »
Wow! Now that's a helpful resource for beginners. :) Thanks Ghost!
I survived the spammage of 2007