Skip to content

grymmjack/qbjs-vscode-template

Repository files navigation

About QBJS

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.

About the vscode template

Template is all qbjs defaults, all I did was make it easy to get started. Enjoy! ~ grymmjack

Setup:

  1. Clone the repo - git clone https://github.com/grymmjack/qbjs-vscode-template your-project-here
  2. Go into project dir - cd your-project-here
  3. Delete .git (start clean on your own) rm -rf .git
  4. Open vscode
  5. Add your-project-here folder to vscode workspace - code -ra . (if you have it setup in path)
  6. Install the recommended extensions (only asked one time)
  7. Restart vscode (if applicable)
  8. Open index.bas and start coding
  9. 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 the index.html and so if you do rename that file, you will need to modify index.html as well.

To copy to online qbjs.org

  1. Zip the project
  2. Go to https://qbjs.org
  3. Open the zip file project with the open icon
  4. Copy contents of index.bas into editor

Supported OSes:

  • Windows
  • MacOS
  • Linux

If you don't have qb2js for your platform...

  1. Clone the qbjs repo (https://github.com/boxgaming/qbjs)
  2. Compile tools/qb2js.bas
  3. Copy the qb2js binary from tools/qb2js into root of project
  4. Modify tasks.json to use qb2js platform command