3 ms·
I wrote a BASIC to JS compiler/transpiler that includes all of the programs from "BASIC Computer Games" as examples. You can try it out in your browser at: htt
by kgr 3y ago
I wrote a BASIC to JS compiler/transpiler that includes all of the programs from "BASIC Computer Games" as examples.
You can try it out in your browser at: https://codepen.io/kgr/full/yLQyLjR https://codepen.io/kgr/full/yLQyLjR
Just select the game you want to to run from the top-left list box, then press the "Compile" button and you'll see the translated JS source in the right text-area. Then press the "Run" button to run it.
The source code for the compiler is available at: https://github.com/kgrgreer/foam3/tree/429f2fd2b4cef0e37996a4c4ad35cdf5f83a8b97/src/foam/demos/basic https://github.com/kgrgreer/foam3/tree/429f2fd2b4cef0e37996a...