Thursday, August 21, 2008

QuickBasic Programming

After touching LOGO for a few months, I've been introduced with QuickBasic. I still remember the person who introduce QuickBasic to me told me "Hi, stop playing with that puny turtle, let's try QuickBasic and start writing your own computer games now!". Writing games? Wow, that's a totally new idea to me. I can write games with QuickBasic! To me, it is LOGO which give me the idea of programming, and it is QuickBasic that open the whole world of programming to me.

Similar with LOGO, QuickBasic is an intrepreter, that means we cannot really develop high performance application with it, but it do carry enough features to write almost every kind of simple applications and simple games.

Okay, let us start some action now. Before getting into action, you can download the QBASIC interpreter at here. Unzip it into any folder and run it. It should run perfectly under Windows XP and Windows Vista.

As an introduction, try the following code:

SCREEN 13
FOR I = 1 TO 100
COLOR I
CIRCLE (160, 100), I
NEXT




Press F5 to run the program. You will see a colourful circle immediately. Amazing right?

0 comments: