I've been working on a classic BASIC language inspired by Microsoft Atari Basic. It comes with a 50x50 display by default and makes it really easy to draw things and make games. The language is still in Beta and I'll be improving it over the coming weeks. For now here is the documentation and a sample snake game that I found on the internet and modified to make it work here. Please let me know what you think.
If you're curious you can find the source code for the interpreter here (https://repl.it/@amasad/pg-basic). Feel free to fix bugs and send patches.
@amasad So, since this was done in JavaScript, I thought It wouldn't be irrelevant to point out that Repl's NodeJs is more outdated than my browser. Can you guys update it, or better yet set, up an automated update script? I've been trying to try out the newest JavaScript features.
Announcing Basic Language With Graphics (Beta)
Hey everyone!
I've been working on a classic BASIC language inspired by Microsoft Atari Basic. It comes with a 50x50 display by default and makes it really easy to draw things and make games. The language is still in Beta and I'll be improving it over the coming weeks. For now here is the documentation and a sample snake game that I found on the internet and modified to make it work here. Please let me know what you think.
If you're curious you can find the source code for the interpreter here (https://repl.it/@amasad/pg-basic). Feel free to fix bugs and send patches.
[update] Docs moved here: https://docs.repl.it/misc/basic
[update 2] Changelog:
LET
is optional. You can define variables like so10 X = 1
TEXT
lets you draw text on the screen (refer to docs)GETCHAR
handles long-presses better[update 3] Changelog:
ARRAY a, 2
DRAW
@amasad So, since this was done in JavaScript, I thought It wouldn't be irrelevant to point out that Repl's NodeJs is more outdated than my browser. Can you guys update it, or better yet set, up an automated update script? I've been trying to try out the newest JavaScript features.