-->

Getting Started with FUZE BASIC

FUZE BASIC is a marvellous programming language to begin learning to code with. It greatly mimics the ’80s BASIC versions from the 8-bit machines of the time, such as the Commodore 64, ZX Spectrum and BBC Micro.

BACK TO BASICS


Let’s begin our programming journey with FUZE BASIC, an environment where you can create anything, from simple scripts to complex games with graphics and sounds.

You May Also Like:



Step 1

In the bottom right panel, the one that’s coloured white on a red background? Click it and you launch
the FUZE BASIC, complete with a C64-style retro interface. You can also double-click the FUZE BASIC V3 icon on the desktop.

Getting Started with FUZE BASIC
Getting Started with FUZE BASIC


Step 2

Don’t worry if you don’t have a FUZE Workstation. FUZE BASIC is available for Windows, the BBC micro:bit and the Raspberry Pi (since it’s already running on a RPi). Open a browser to www.fuze.co.uk/download-fuze.html and follow the download instructions for FUZE BASIC for Windows and the step-by-step instructions to install it on a Raspberry Pi.

Getting Started with FUZE BASIC


Step 3

The retro style interface of FUZE BASIC has several themes that you can cycle through, depending
on your taste. The default view is that of a Commodore 64 but if you want a different view press the Insert key to cycle through the available interfaces. You’ll no doubt recognise some of them, so find
one you like.

Getting Started with FUZE BASIC


Step 4

The screen you’re looking at now is called Immediate Mode; pressing the Enter key will reveal a cursor where you can start to enter code. Try this: press Enter, then type: Hello everyone and press Enter again. The output on the screen will display whatever you’ve typed into the quotation marks.

Getting Started with FUZE BASIC


Step 5

You can also Print the total output of several numbers from within the Immediate Mode. For example, try: print 10 + 20 + 30, and press Enter. The sum of the numbers you’ve entered will now be displayed on the screen, in this case the number 60. Try more numbers and even different
mathematical symbols.

Getting Started with FUZE BASIC


Step 6

If you find the screen getting a little full, enter cls to clear the BASIC display. BASIC in Immediate Mode is also capable of storing variables, something which we’ll look at in more depth in the next tutorial. For now, try this and press Enter after each line:

A=10
Print a

Getting Started with FUZE BASIC


Step 7

If you’re old enough to recall BASIC from the early days of computing, you’ll no doubt remember that coding came with line numbers. FUZE BASIC works the same way. Whilst still in Immediate Mode, enter:

10 print “Hello”
20 goto 10

Now enter run. The word Hello should now cycle down the screen. Press the Escape key to exit it.

Getting Started with FUZE BASIC

Step 8

Before we get into variables and other such programming terms, let’s have a little play around with a quick listing to ask for user input. Enter this:

10 cls
20 input “What is your name? “, n$
30 print
40 print “Hello “; n$

Enter run to execute the code.

Getting Started with FUZE BASIC


Step 9

Dissecting the previous code, we have the command to clear the screen [CLS], then the Input command asking for user input and storing the input as the variable n$. The Print at line 30 puts a blank line on the screen, whilst the Print command at line 40 displays the message Hello and the contents of the variable n$.



Step 10

There’s a lot you can do in Immediate Mode; however, to unleash the full potential of FUZE BASIC you’re best working in the Program Editor. To enter the Program Editor type in the command new to clear any programs already stored in memory and press the F2 key. As you can see, Program Editor looks significantly different to Immediate Mode.

Getting Started with FUZE BASIC

0 Response to "Getting Started with FUZE BASIC"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel