Code\Tutorials
Home
About Me
Games
GEOCITIES SUCKS, GO TO NEW SITE HERE
I will be posting some helpful code physics and such that I find as a program my games. Until then here are some basic ideas\concepts to look over if you are JUST starting Blitz.

;How to load an image and place it on screen
;Basic tutorial made by Jon Olson
;Use it for whatever you wish, believe me no thanks necesicary! :P


;Create the graphics window (think of it as the "viewpoint")

Graphics 800,600

;There are 2 buffers when using images...you need to set it orginally as this

SetBuffer BackBuffer()

;name the image and then physically load it as "Whatever you have.bmp" Make sure that your bb
;file is in the same folder as the image or else it will not work

blah = LoadImage("upsidedownfrown.bmp")

;creates a loop (repeating piece of code) Basically means, if your not hitting the esc key then do this

While Not KeyHit(1)

;clears the screen

Cls
 
  ;draws the image "blah" (which is what you named the image) at the 400,300 coordinate
 
  DrawImage blah,400,300

;flip the two buffers back and forth (needed for images)

Flip

;signifys the end of the loop

Wend
Hosted by www.Geocities.ws

1