Code Gallery for Small Basic

I’ve just created a code gallery page for Small Basic (now with a Wiki).  Check it out: In addition to a new link to Small Basic API reference, you can also find information about the upcoming release there.


Sample of the Week, II

This week’s featured sample comes from Jeff Sidlosky. It is a star field simulation – you know the one where it appears like you’re moving fast through space, with stars whizzing past you. ‘ Star-field simulation Initialize() Main() Sub Initialize GraphicsWindow.Title = “Super Star Field!” GraphicsWindow.Width = 640 GraphicsWindow.Height = 480 GraphicsWindow.BackgroundColor = “black” GraphicsWindow.PenWidth…


Small Basic and the "Goto" keyword

For the past 40 years, there have been on-going debates in the programming world about the utility and usage of the keyword, Goto.  While it’s been generally accepted that uncontrolled (no pun here) usage of Goto leads to unmanageable and spaghetti code, many, including Donald Knuth, believe that Goto is essential and when used with…


Using Command Line Arguments

The Arguments object in the standard library allows you to work with Command Line Arguments from inside a Small Basic program.  The Arguments object includes a Count property that gives the total number of arguments passed to the program, and a GetArgument(index) operation that allows you to access each of these arguments using their index….


Sample of the Week

This week’s featured sample of the week comes from mcleod_ideafix.  This is a fun little point and shoot game, involving the Turtle in a clever way. ‘Point-and-shoot ‘(C)1989 McLeod/IdeaFix. ‘Target size TargetSize=30 winner=0 wanttoplay=1 ‘A vector-screen style window GraphicsWindow.BackgroundColor=”Black” GraphicsWindow.PenColor=”Green” GraphicsWindow.Clear() Game() Sub Game While (wanttoplay=1) GetRnd() DrawTarget() Turtle.PenUp() ‘Game loop While (winner=0) Shoot() EndWhile…