Game Maker's Garage Forum

Game Creation => Code Exchange => Topic started by: GMG Tim on May 12, 2009, 01:46:47 PM

Title: [BlitzMax] Basic Game Template
Post by: GMG Tim 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
Title: Re: [BlitzMax] Basic Game Template
Post by: Silverwind on May 13, 2009, 02:15:22 AM
Wow! Now that's a helpful resource for beginners. :) Thanks Ghost!