If you want a load of test material, I've got almost 200 Speccy BASIC games (and some utils) where the BASUC code is stored as text files. So, in theory, copy and paste into your tool.
You have a nice collection and site! Yes ... I tried some of your .TAP files. They load directly in the codespeccy playground.
Question: do you think people would find useful to have a Share button in codespeccy to share a BASIC playground? ... or perhaps the ability to load a .TAP file via querystring?
I was worried that your BASIC tool wouldn't recognise the way the TXT (not TAP) files stored the UDGs and Extended Mode graphics, plus embedded colours in a string. They work by storing them with a \ symbol then a letter (for UDGs) for example.
The site contents are for those who want to know how old Spectrum games and utils were coded, without having to run it via an emulator first.
The one thing I've found is that if I use the option in ZX Preview to break the BASIC listing into one command per line, which I've done in a lot of the rips, then it won't work in your tool.
Any chance of a "fix ugly listings" as, naturally, they don't work. E.g. Air Raid by CCS
1 GO SUB 9900:\
FLASH 0:\
BRIGHT 0:\
INVERSE 0:\
OVER 0:\
LET k=17:\
LET fl1=0:\
LET y=10:\
LET c=20:\
LET shot=40:\
LET point=0:\
LET savcas=0
2 LET jet=0:\
DIM w(15,1):\
LET w(11,1)=6000:\
LET w(12,1)=6009:\
LET w(13,1)=70:\
LET w(14,1)=60:\
LET w(15,1)=6009:\
LET w(1,1)=6000:\
LET w(2,1)=6009:\
LET w(3,1)=425:\
LET w(4,1)=70:\
LET w(5,1)=60:\
LET w(6,1)=53:\
LET w(7,1)=53:\
LET w(8,1)=53:\
LET w(9,1)=53:\
LET w(10,1)=53:\
LET demo=0:\
DIM q(10,2):\
LET para=0:\
LET kol=0:\
LET level=1:\
DIM k$(1,13):\
LET last=0:\
DIM t$(10,13):\
DIM p(10,1):\
LET k=0:\
LET x=0
3D Golf worked well, until I remembered that you were supposed to save your own courses, before attempting to play some as the original tape copy had none. D'oh!
I'll do more experimentation with the 100% BASIC rips I've got on my site. I'll start redoing those listings with have the "one command per line" option.
I can see this being useful for when I do pure BASIC translations, and I've got a few "ready to roll" that I did a few years ago, but if they use external binary files (UDG, m/c routines, new fonts etc.), I'll have to merge the BASIC with the other files. Easy enough to do with DOS's file copy /b parameter.
Then I can start plugging your tool (if that's OK with you) :)
I keep getting a "Build failed: TypeError: t.filter is not a function" error. Any idea why?
The source code isn't using the "one command per line", but it does feature the SpecBAS listing style of including the UDGs in a text string with \a for USR "a" etc.
It's the two golf games that are at the top of my downloads. I translated them from German to English so I'd like to compile them into .TAP format and get them onto Spectrum Computing etc.
9
u/garyk1968 14d ago
Link for the idle :) : https://speccy.codeguppy.com/
I like it!