3 ms·
Wow, that's a faithful reproduction. Did you use a translator or are you doing this totally by hand? The reason I ask is that even the effects like the Sun show
by simplehuman 10y ago
Wow, that's a faithful reproduction. Did you use a translator or are you doing this totally by hand? The reason I ask is that even the effects like the Sun showing a reaction when hit by a banana is nicely reproduced.
Edit: If you have the source online, link please. I would love to make it networked :-)
- kmill 10y agoI did it by hand by reading the original QBasic source code. One reason I did it was to reacquaint myself with QBasic, the first programming language I learned. Another was the challenge of converting a program which relied on blocking behavior to HTML5, which shuns anything of the sort; the solution I used was generators to simulate my own "IO monad." The IBM EGA font came from an image someone kindly had of the complete character set, which I converted to JS: http://www.kylem.net/stuff/gorilla/ega8x14.js http://www.kylem.net/stuff/gorilla/ega8x14.js The source code is http://www.kylem.net/stuff/gorilla/gorilla.js http://www.kylem.net/stuff/gorilla/gorilla.js Feel free to do whatever you want with it!
- mysterydip 10y agoCould you apply what you learned to improve this qb js interpreter? http://stevehanov.ca/blog/index.php?id=92 http://stevehanov.ca/blog/index.php?id=92 Fairly useless but would be a nice nostalgia trip to be able to run some of the 90s qbasic code that's still lying around in unswept corners of the internet :)
- kmill 10y agoIf the point is running old QBasic code in a browser, it's probably better to compile DosBox to HTML5 and run the original QBasic interpreter in that, as is done on archive.org: https://archive.org/search.php?query=subject%3A%22qbasic%22 https://archive.org/search.php?query=subject%3A%22qbasic%22 Nibbles: https://archive.org/details/NibblesQbasic https://archive.org/details/NibblesQbasic