r/atarist • u/Materion93 • 7m ago
GameBasic 1.1 new language for Atari ST
Hi all!
I'd like to share FastBasic ST, a compiled BASIC for the Atari ST made for one thing: writing games. You write your program in the built-in editor, press F10, and it compiles to 68000 code and runs. No line numbers, no interpreter slowdown.
What it does
Structured BASIC: procedures and functions with parameters and LOCAL variables, DO/LOOP, REPEAT/UNTIL, SELECT/CASE, CONST, arrays. 32-bit integers throughout.
Software sprites: masked and pre-shifted, from 8×8 up to 64×200. Collision detection with HIT and SPRITEHIT, background restore, double buffering with SCREEN 2 / FLIP. The manual's demo moves 10 sprites over a full-screen picture at 50 fps.
Tiles and maps: 16×16 tiles, maps up to 4096×4096, DRAWMAP for scrolling.
Sound: plays SNDH music, with sound effects that borrow channel C so they never cut off the melody.
Input: keyboard, joystick and mouse.
FRAMERATE n: a steady game speed.
FRAMERATE 25and every frame lasts exactly 2 VBLs, however busy the frame is.Boot disks: press F7 and your finished game goes onto a disk that starts by itself. Insert, switch on, play. If the game doesn't fit on one disk, it's spread over several and the game asks for the next one.
PC tools (Python) for those of us who prefer to draw and compose on a modern machine:
mkassets.py: PNG ↔ Degas .PI1 (keeps your colour numbers if you save indexed)mkmap.py: levels from a text file, a spreadsheet or Tiled's CSV export → .MAPmksndh.py: write a 3-channel tune (lead, bass, noise drums) as a text file and get an SNDH file
Documentation
A full manual (PDF)
A step-by-step tutorial for the PC tools
Crystal Cavern, a tutorial for people who can program but have never written a game. It builds a complete maze arcade game step by step, with game loop, game states, grid movement, enemy AI, collisions, score, lives and levels, and explains every line of code. Assets included, levels designed in Tiled.
Requirements: any ST/STF/STE/Mega with about 1 MB of RAM and a colour monitor for graphics. Any TOS version. No TT/Falcon.
Download: https://github.com/MaterzokMateusz/AtariSTGameBasic/releases/tag/Release1.1
The new features (FRAMERATE, boot disks, multi-disk games, 8×8 sprites) have been tested in a 68000 emulator but not on real hardware yet, so I'd really love reports from real STs, STEs and Megas, and from Hatari and Steem. Especially boot disks and disk swapping in multi-disk games.
Questions, bug reports, feature ideas, and above all games you make with it are very welcome. Happy coding!




