Documentation

How aukimi works, module by module, written from the app and not from the brochure.

45 pages · Titles and page contents

Start here

Introduction

Modules

Languages

The BASIC languageaukimi's classic BASIC dialect: what it is, the two rules that catch everyone, the twelve chapters of the manual, and the 2 501 commands behind it.Program structureWrite a program the compiler accepts: lines and colons, the six comment forms, names and case, strings, the parentheses rule, and the guards that refuse a line.Variables and typesCreate variables, choose a numeric type that wraps the way you expect, turn on OPTION EXPLICIT, share state with GLOBAL, and expose a setting in the Inspector.Constants and operatorsName fixed values with #CONSTANT and ENUMERATION, compute with every operator, avoid the precedence traps, and pick the right built-in maths and string functions.Control flowBranch with IF and SELECT, repeat with FOR, WHILE and REPEAT, leave a loop early, and jump with GOSUB and GOTO.Arrays, lists and mapsStore many values in arrays, lists and maps, walk them with FOR and FOREACH, and read constant tables with DATA and READ.Records and methodsGroup fields into TYPE records, copy them as values, reach their fields with WITH, and give them methods, a constructor and a destructor.FunctionsDeclare FUNCTIONs with default, optional, variadic and REF parameters, return typed values, overload by argument count, hook into the Engine's lifecycle, and pass handles.ErrorsCatch, throw and clean up with TRY, CATCH and FINALLY, decide what a failing command does with ErrorMode, and read the errors the editor reports.The preprocessorSplit a program across several files with #INCLUDE, #INSERT and IncludeFile, and compile lines only for the targets that need them with #IF and the target profiles.The game loop and tasksPick a program shape, end each frame with Sync(), wait on game time, and run several jobs side by side with cooperative tasks.ShorthandsWrite less: how commands are named, WITH blocks on engine objects, dot notation, $"…" interpolation, and the PureBasic spellings the compiler accepts.GPU computeRun WGSL compute shaders from BASIC: storage buffers, pipelines, dispatch in frame order, readback into memblocks, and the CPU fallback for targets without GPU compute.The BASIC language, word by wordEvery statement, directive and operator, and the compiler's own commands: 107 pages with syntax, a program that compiles and the traps.BASIC commandsAll 2266 commands, one page each, with a search and 43 families.JavaScript in the EngineThe Engine's script API: the lifecycle, the coordinate traps, the three ways to make an object, and how to move one without walking through walls.JavaScript APIAll 538 members, one page each, with a search and 50 namespaces.Player accountsGive the players of your game an account they keep across every Aukimi game, with saves that follow them from one device to the next, on Aukimi's service or on a server of your own.Google fonts in BASICName a font family and get real vector text instead of a bitmap sheet, with the wait that asynchronous loading requires and what happens once the game is exported.Sprite and text effectsShadow, outline, glow and blur on 2D sprites and on text, with what each one costs, what it does to a moving sprite, and the hand-rolled recipe it replaces.

Reference