GLBasic Programming/BASIC/Your First Program
Appearance
To make you're first program, make a new file and type this:
CLEARSCREEN PRINT "Hello, world!", 100, 100 SHOWSCREEN KEYWAIT END
Explanation:
[edit | edit source]- CLEARSCREEN makes the screen clear the screen
- PRINT displays everything between quotations and places it at x100, y100
- SHOWSCREEN shows everything typed above on the screen
- KEYWAIT makes the program wait until a key is pressed (You also can use MOUSEWAIT)
- END stops the program there