< GLBasic Programming < BASIC
To make you're first program, make a new file and type this:
CLEARSCREEN PRINT "Hello, world!", 100, 100 SHOWSCREEN KEYWAIT END
Explanation:
- 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
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.