Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BASIC examples should use more spaces to make reading easier #84

Open
mobluse opened this issue May 17, 2022 · 3 comments
Open

BASIC examples should use more spaces to make reading easier #84

mobluse opened this issue May 17, 2022 · 3 comments

Comments

@mobluse
Copy link
Contributor

mobluse commented May 17, 2022

I think the BASIC examples should use more spaces to make reading easier. E.g.

10 SCREEN$80
20 FORI=1TO20:FRAMERND(1)*320,RND(1)*200,RND(1)*320,RND(1)*200,RND(1)*128:NEXT
30 GOTO20

could be:

10 SCREEN $80
20 FOR I=1 TO 20:FRAME RND(1)*320,RND(1)*240,RND(1)*320,RND(1)*240,RND(1)*128:NEXT
30 GOTO 20

I also changed 200 to 240 since now larger effective screen.

@irmen
Copy link
Contributor

irmen commented May 31, 2022

yeah I noticed that as well that in various places in the documentation the new screen size of mode $80 is not mentioned yet.

@mobluse
Copy link
Contributor Author

mobluse commented Jun 1, 2022

I noticed that line 20 will be too long if one inserts all the spaces, but this works:

10 SCREEN $80
20 FORI=1TO20:FRAME RND(1)*320,RND(1)*240,RND(1)*320,RND(1)*240,RND(1)*128:NEXT
30 GOTO 20

The examples should be possible to paste into the emulator.

@Frosty-J
Copy link

The other day I was trying to find out what the FORT command or variable is. I soon realised it's FOR T, but yeah, spaces would be nice. IFOBTHENLINEOX is even less clear. Probably your example could have the FOR and NEXT moved to new lines, as these examples don't have to make the most of the clock cycles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants