Not able to code old school basic games? (obsolete syntax?)


tactics_pvp 2020-02-07 04:28 (Edited)

First, I wanted to briefly say, I am finding out basic is not case sensitive. It’s not challenging me when I type keywords in lower case. That’s cool I guess, not being strict with form. Same with my Python studies - mostly lower case.

Found this guide with 101 Basic computer games. However the first game I tried, Acey Ducey is not being accepted by NX. I’m guessing some keywords are obsolete?

If that’s the case - is this book useless for NX?

This is the PDF Book:

was8bit 2020-02-07 05:53

NX basic is unique to NX only, made by Timo specifically for NX's emulated "hardware" so while other basic websites might help you understand how to use loops and logic constructs, the specific language itself will NOT be compatiple...

Timo 2020-02-07 07:47

These old BASIC programs use line numbers, LowRes NX uses jump labels. But it can be converted.
I’ll explain later.

nwallen 2020-02-07 07:54

"The programming language of LowRes NX is based on second-generation, structured BASIC (1985 style)."
The examples in the book are based on the unstructured basic.
He basic wikipedia has examples on how they are different.

Timo 2020-02-07 10:11

Basically you have to replace the line numbers with labels, but only where necessary.

20 GOTO 10

Would become:


was8bit 2020-02-07 12:50

I have reviewed this book.... the only comand that wont work is DEF FN so in that case you would have to manually code that function back into the code each time

I have done this before, and it can be a LOT of work... too often the code can be a pile of spagettii with lots of back and forth from line to line...

With acey duecy it was just easier to look at the printout of the gameplay, understand the rules, review the code, and write my own version from scratch ;)


Log in to reply.