I'm experimenting with functions as I hear they're great for organizing your program, but I've got a bit of a problem... (and I feel like a greenhorn for this... which I am)
My text isn't showing up in this simple program. Maybe someone can figure it out for me as my brain is smoking at the moment from overload...
REM Project: SpriteTraining1
REM Created: 3/12/2010 4:19:19 PM
REM
REM ***** Main Source File *****
REM
setscreenmode()
do
cls
set cursor 10, 10
print "screen set"
loop
function setscreenmode()
rem (this will set the display mode. If the mode is not available then
rem the program will exit)
If Check Display Mode(800, 600, 32) = 0
End
Else
set display mode 800, 600, 32, 1
endif
rem (sets program to run in window)
set window on
rem (sets rate of updates so things don't move too fast)
Sync On
Sync Rate 60
Backdrop Off
endfunction
In the beginning there was nothing. There'll be nothing in the end...