nesbox / TIC-80

TIC-80 is a fantasy computer for making, playing and sharing tiny games.
https://tic80.com
MIT License
4.95k stars 480 forks source link

Suggestion: BASIC Support #2458

Open RuiNtD opened 7 months ago

RuiNtD commented 7 months ago

It would be cool if TIC-80 had support for the BASIC programming language, in all of its GOTO glory.

japhib commented 7 months ago

I’m guessing next steps would be to find a BASIC interpreter written in C/C++ that could be embedded in tic80. Then start figuring out what bindings to tic80 functionality would look like.

joshgoebel commented 6 months ago

This would be fun/cool, but so would a BASIC interpreter written in Lua that turned TIC-80 into a tiny BASIC computer - with a prompt for inputting/modifying programs, etc. :-)

Miguel-hrvs commented 1 month ago

Mybasic: https://github.com/paladin-t/my_basic is used in another fantasy console: https://paladin-t.github.io/b8/ Maybe it could be implemeted into tic80 as well. But adding languages goes beyond my limits so if someone is capable enough to implement it, could be a good one to choose. The api is documented in a pdf file: https://paladin-t.github.io/my_basic/MY-BASIC%20Quick%20Reference.pdf And defined in the end of the header file: https://github.com/paladin-t/my_basic/blob/master/core/my_basic.h It is mit licensed so that won't be a problem. Here's a list of projects that use it: https://github.com/my-basic/awesome?tab=readme-ov-file