Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

BASIC Forum & Tutorials

The tutorials are useful for self-learning and the forum is good for sharing ideas & information · By david.JamIsFun

RetroQ — a RapidQ-flavored BASIC that transpiles to JS

A topic by Cybermonkey created 7 days ago Views: 22 Replies: 1
Viewing posts 1 to 2

Hi all,

I wanted to tease a side project I've been building: RetroQ, a BASIC dialect close to RapidQ that transpiles straight to JavaScript. No public release yet, but figured this crowd would appreciate an early look.

What it does so far:

  • Full core language: DIM/CONST, IF/ELSEIF/ELSE, FOR/WHILE/DO...LOOP, SUB/FUNCTION, arrays, string & math builtins. No GOTO/GOSUB — structured control flow only, on purpose.
  • A small GUI subset (FORM, LABEL, BUTTON, EDIT, CHECKBOX) that maps onto WinBox.js windows styled with 7.css — BASIC programs run as real draggable, resizable windows in the browser.
  • Just wired up a custom Aero-glass theme on top of that, so the windows now genuinely look like Windows 7: translucent frame, blue/red buttons, no fullscreen button (kept it faithful to the original).

A quick taste of the syntax:

CREATE Form1 AS QFORM
   Caption = "Hello"
   CENTER    
   CREATE Button1 AS QBUTTON
     Caption = "Click me!"
     Left = 20
     Top = 60
   END CREATE
 END CREATE  
Form1.Show()  
SUB Button1_OnClick()
   Label1.Caption = "Clicked!" 
END SUB

That transpiles to plain JavaScript — no build step, runs directly in the browser (or under Node for console-only programs, complete with PRINT/INPUT).

Still polishing before a proper release — more widgets and events are next — but curious what fellow BASIC folks think of the approach. Screenshot attached.


Hello...I am so surprised because you are developing two dialects at the same time! You are a very passionate BASIC enthusiast. Sure.
The new dialect combines the simplicity of the syntax of RapidQ with modern web technology. The new dialect also  gives BASIC programs a nostalgic Windows 7 desktop look. Nice! The name RetroQ is suitable and the project looks solid.  I like the new dialect . Well done!