Friday, June 28, 2013

Tutorial 1 - Hello World

In this tutorial we will go over getting your new program set up, saved, and running.

Start off on the main menu and select "Write Program". You should see a console window at the top and a keyboard type of setup on the bottom screen. To begin editing our program we need to get into the edit mode. Click the "Edit" icon on the bottom of the screen. This is where you will be doing all of your coding when using PC.

Here is the code I want you to type out (Excluding the line numbers on the left):
  1. VISIBLE 1,0,0,0,0,0
  2. ACLS
  3. CLS
  4. PRINT "HELLO WORLD!"
Now click the button on the bottom of the screen that says "RUN" to go back to the console.
From here you can either type out RUN manually, or click the shortcut at the top of the bottom screen and press enter to run your new program.

From here you can hit EDIT to go play around with the code a bit (I recommend doing so) or you can type 'SAVE "TUT1' and press enter. Similarly, to load your code later you can type 'LOAD "TUT1' and press enter. Happy Hacking =)

Commands Used:
VISIBLE - Control of screen display elements (Using 0 will cause a particular element to not be displayed, while 1 will display it.)
This command is used to either disable or enable the different layers of the screen.
  • VISIBLE console, panel, BG0, BG1, SPRITE, graphic

ACLS - Reset Graphic Display Environment.
This command resets the graphical display to clean up anything that may be there
  • ACLS

CLS - Erases the contents of the console screen.
This command empties your console
  • CLS

PRINT - Displays characters on the console screen.
This command displays text on the console screen.
  • PRINT "String" - Prints the words within "
  • PRINT variable - Prints a numeric variable
  • PRINT variable$ - Prints a string variable
  • PRINT variable;variable$;"string" - Prints a series of values, separated with ;
  • PRINT "string",variable,variable$ - Prints a series of values, separated with ,

QR Code for this Tutorial


No comments:

Post a Comment