> OK so take this code below, strip off the leading spaces (thats important) and paste it into the box.
I'm sure you really mean print it out then type it in, line by line.
I'll have my friend read it out to me letter by letter while I type it in
Re:BBC Basic Editor
by mattgodbolt on Monday November 30, 2020 @03:45PM
(#25258740)
Thanks! I'll note the leading spaces bug!
Re:BBC Basic Editor
by mattgodbolt on Monday November 30, 2020 @11:36PM
(#25262340)
...and it should now be fixed!
Hey, this is awesome. Such a throwback!
I noticed that some of the characters aren't what I'd expect, any reason?
PRINT ASC("\") " " CHR$(92) : PRINT ASC("/") " " CHR$(47)
47 prints fine, but 92 reveals a symbol "12" in super/subscript.
Some of the others are also off, e.g. the arrow sequence revealed by 10 FOR A= 1 TO 255 STEP 1 : PRINT CHR$(A) ;: NEXT
shows down arrow suffering the same.
Thanks, can't wait to see where this goes next!
Oh, discovered from the other comments here that if I do a
`MODE 0` then the character set changes to what I'd expect. Will look into that. So this one works for me now, cheers :D
5 MODE 1
10 IF RND(1) > 0.5 THEN PRINT CHR$(92) ;: ELSE PRINT CHR$(47) ;:
20 GOTO 10
edit:it was leading spaces before the line numbers that had broken it - got rid of them and it works.
OK so take this code below, strip off the leading spaces (thats important) and paste it into the box.
Its a helicopter game, controls are Z,X,M,K for left, right, up and down. You have to collect the asterixes.
The controls wont work in the right hand pane but if you press the JSBeeb button at the bottom it will port your code to JSBeeb where it does run
"Helicopter" by David Johnston from Acorn Computing magazine, 1994
Also a bat and ball game here, its not very good though:https://pastebin.com/dntnb8es