QBASIC JS
QBASIC is an IDE and interpreter for a variant of the BASIC programming language, and Steve Hanov has created an implementation of QBASIC in Javascript. The tool uses canvas to display the screen, which is where your compiled code will eventually end up. Thankfully, Steve has included one of the original QBASIC examples – Nibbles, a variant on the popular Snake game.

More snake action with 'Nibbles'
Steve is currently running a guide of how to implement a virtual machine like QBASIC in JavaScript – and is well worth a read.


Comments
Michael
It works in Safari 5.
Posted on September 15, 2010
eni
this is goddamn impressive (not really the canvas-part but the virtual machine)
Posted on October 26, 2010
mmu_man
Wow, funky !
Just tested on Safari Version 5.0.3 (6533.19.4), seems to work fine (finished a level), apart a little color artifact (the snake leaves a little darker blue behind it) but hardly noticeable, and it’s probably due to Safari trying to be too smart with gamma corrections.
Posted on January 22, 2011
Dustin Williams
Works in Chrome 11.0.696.57 beta!
Posted on April 27, 2011
Related demos