QBJS is an implementation of the Basic programming language for the web, with multimedia support and easy sharing of programs. It aims to be compatible with QB64, which in turn implements the same dialect as the classic QBasic.
The project is in active development as of 30 March 2022. It can be tried online on itch.io; documentation and releases are hosted on GitHub.
Support for browser APIs is built-in as of version 0.3.0-beta; a game engine is included separately.
Template is all qbjs defaults, all I did was make it easy to get started. Enjoy! ~ grymmjack
- Clone the repo -
git clone https://github.com/grymmjack/qbjs-vscode-template your-project-here
- Go into project dir -
cd your-project-here
- Delete
.git
(start clean on your own)rm -rf .git
- Open vscode
- Add
your-project-here
folder to vscode workspace -code -ra .
(if you have it setup in path) - Install the recommended extensions (only asked one time)
- Restart vscode (if applicable)
- Open
index.bas
and start coding - Press
F5
to build and preview
NOTE: index.html, index.bas, and index.js are all just placeholder names, and you could use other names. If you do, make sure that if you modify index.html to another name, the liveServer web preview won't find it by default, so you will need to open the html file, and click the preview icon.
index.js
is linked via<script>
tag in theindex.html
and so if you do rename that file, you will need to modifyindex.html
as well.
- Zip the project
- Go to https://qbjs.org
- Open the zip file project with the open icon
- Copy contents of
index.bas
into editor
- Windows
- MacOS
- Linux
- Clone the qbjs repo (https://github.com/boxgaming/qbjs)
- Compile tools/qb2js.bas
- Copy the qb2js binary from tools/qb2js into root of project
- Modify tasks.json to use qb2js platform command