Skip to content

Improvements ​

A running list of improvements to Gamma and Gama, worked through from the top of each section. Ticked items are done and name their commit's title. Items that need a machine this list's author does not have (Windows, a GPU, a display) say so and are left for someone who has one.

Unlike plan.md, which builds the foundation in order, the items here are independent and can be taken in any order.

1. CI and build health ​

  • [x] Compare the block raycast hit in MeshPart.spec.luau with a tolerance: it is single precision, and the headless CI build got 1.9999998 instead of 2.

  • [x] Format the two pointer-to-member declarations clang-format 23 changed its mind about (Lighting.h, Length.cpp), which failed the Lint job.

  • [x] Install autoconf, autoconf-archive, automake and libtool on the Linux build jobs: vcpkg builds libxcrypt (pulled in through the window system backends) with autotools, which failed every Linux debug and asan build.

  • [x] Run Gamma check over Tests/Gama and Examples/GamaDemo in CI, so a Gama type error in a shipped example fails the build.

  • [x] Key the vcpkg binary cache on the overlay ports and the preset as well as vcpkg.json (which holds the baseline), so a changed overlay port starts a new cache and the three Linux jobs stop racing to save one key with different package sets.

  • [x] Add Gama fuzz tests: random token soups never make the transpiler throw, and 300 random programs mixing every construct translate to Luau that compiles, with the same lines.

  • [x] Validate the VS Code extension's JSON files (grammar, snippets, package.json) and its script's syntax in the Lint job.

  • [x] Cancel superseded runs of the same branch (concurrency with cancel-in-progress), since a full vcpkg build takes over half an hour.

  • [x] A release workflow that builds the headless and graphics executables on a tag and attaches them to a GitHub release. Not run yet: it runs on the first version tag.

2. Gama language ​

Each item needs a doctest in Tests/Gama.cpp, a case in Tests/Gama/Language.spec.gma and a row in gama.md.

  • [x] Short hex colours: $f80 and $f80c as #ff8800 and #ff8800cc, like CSS. Colours with alpha ($f80c, $ff8800cc) now become strings, since Color.fromHex has no alpha and failed on them at run time.
  • [x] Nil coalescing a ?? b, evaluating a once: (function(v) if v == nil then return b else return v end)(a) is too slow, so translate to an if expression over a temporary when a is not a plain name.
  • [x] Optional chaining a?.b, a?.b() and a?:m(), short-circuiting to nil.
  • [x] ??= assignment.
  • [x] Default parameters: fn f(a: number = 1) becomes local a: number = if a == nil then 1 else a at the top of the body, on the same line, since Luau does not narrow a parameter assigned in an if.
  • [x] Destructuring: let { x, y } = point and let [first, second] = list.
  • [x] Range loops: for i in 1..10 do, for i in 0..<n do and by step, translated to numeric for loops.
  • [x] match: a statement, match v when a, b then ... else ... end, with an error for a duplicate literal case.
  • [x] match as an expression, giving the value of the arm that runs.
  • [x] enum declarations: enum Direction { Up, Down } as a frozen table of strings plus an exported union type.
  • [x] defer: runs a block when the enclosing function returns or errors.
  • [x] wait until cond: yields one step at a time until cond is true.
  • [x] every that runs first: every 1 now do runs the body before the first wait.
  • [x] Lambda shorthand: fn(x) => x * 2 for a single-expression function.
  • [x] class declarations: fields with defaults, a constructor and methods, translated to the metatable idiom with a typed new and self.
  • [x] class ... extends: inherit fields and methods from another class, with super calls.
  • [x] Undeclared reads: already reported as Unknown global by the type checker in Gamma check and the language server, so nothing to add.
  • [x] Unused locals: Gamma check and the language server now report a curated set of Luau lints as warnings (unused locals and functions, unreachable code, duplicate keys, format strings and more), skipping lints about generated Luau.
  • [x] Shadowing: warn when a let shadows an earlier name in the same function, with Luau's LocalShadow lint and the line it names mapped to the .gma file. Shadowing across functions stays allowed, as in Luau.
  • [x] Unreachable code: code after return or break is already a Luau syntax error, and code after a call that always errors is now Luau's UnreachableCode lint.
  • [x] Reassigning a const field: const binds only the name, as Luau's const proposal does, and the docs point to table.freeze for a read-only table.
  • [x] Error recovery: report up to 20 syntax errors in a file, resynchronising at the next statement that starts at the left margin.
  • [x] Better messages (already there: expected 'end' to close 'fn' on line 3, got <eof>, and each Expect names what it closes): show what was expected and what was found (expected 'end' to close 'fn' on line 3, found <eof>).
  • [x] export re-exports: export { Name } from "./Other".

3. Gama tools and editor support ​

  • [x] Language server: find references and rename, using the transpiler's symbols and references.
  • [x] Language server: document highlight of a symbol's uses.
  • [x] Language server: signature help for calls, from Luau's type of the function.
  • [x] Language server: semantic tokens, so keywords such as on and every colour correctly in any theme.
  • [x] Language server: code actions that fix Gama's own errors (~= to !=, local to let, function to fn, declare an undeclared name).
  • [x] Language server: folding ranges for blocks and trees.
  • [x] Language server: workspace symbols across the project.
  • [x] Language server: inlay hints for inferred types of let and parameters.
  • [x] Gamma fmt: a formatter for .gma files, with --check for CI.
  • [x] Gamma port <File.luau>: translate Luau to Gama (local to let, ~= to !=, Vector3.new to <>), and Roblox names to Gamma's (CFrame, Color3, workspace, game:GetService), to move existing code over.
  • [x] Gamma check --json for tools. Warnings alone already exit with 0.
  • [x] Gamma transpile --map: write the source map next to the Luau, for external debuggers.
  • [x] VS Code: run and play commands for the current file or project (F5 plays), in a terminal that links file.gma:line:column:.
  • [x] VS Code: wire the newer language server features into the extension's own client: references, highlights, rename, folding, quick fixes, signature help, inlay hints and workspace symbols were served but not asked for.
  • [x] A tree-sitter grammar for Gama, for Neovim, Helix and Zed (see section 7).

4. Engine ​

  • [x] Gamma new <Folder> [--luau]: create a project with main.gma (or main.luau), an assets folder and a strict .luaurc.
  • [x] Gamma help (and --help, -h): lists every command with what it does. An unknown command now names itself and prints the help.
  • [x] Gamma version and --version, which also name the git commit the build came from, with -dirty for uncommitted changes.
  • [x] Hot reloading in Gamma play: reload a changed script (Luau or Gama) and restart the DataModel: --watch for run and play. play opens a new window for now.
  • [ ] Keep the window when play --watch restarts, by moving the window and renderer out of the per-game state.
  • [ ] Root-cause the Direct3D 12 resize hang with the debug layer on, instead of turning the layer off. Needs Windows.
  • [x] Physics: rigid bodies and collisions for parts with Jolt, opt in with Scene.PhysicsEnabled, plus AssemblyLinearVelocity, AssemblyAngularVelocity, Mass and ApplyImpulse.
  • [x] Physics: welds: WeldConstraint with Part0, Part1 and Enabled, as a Jolt fixed constraint, and welded parts do not collide.
  • [x] Physics: hinges, ball sockets, springs and ropes: Attachment, and HingeConstraint (motor, servo and limits), BallSocketConstraint, SpringConstraint, RopeConstraint and RodConstraint on Jolt's hinge, point and distance constraints.
  • [x] Physics: moving a welded part moves the parts welded to it, as Roblox's assemblies do, even with physics off.
  • [x] Physics: Touched and TouchEnded events from Jolt's contact listener.
  • [x] Physics: CanTouch and touches for parts that cannot collide, as Jolt sensors, plus CanQuery for raycasts and overlap queries.
  • [x] Physics: materials: friction, elasticity and density per Material from Roblox's table, the PhysicalProperties datatype and CustomPhysicalProperties, combined by Roblox's weighted averages.
  • [x] Physics: CPU baseline: the vcpkg Jolt port turned on AVX2 for everything that links it. An overlay port in cmake/FixedPorts builds it for SSE4.2, so exported games run on older CPUs.
  • [x] Audio: Sound instances with 2D and 3D playback (miniaudio), and the Audio service. Ogg Vorbis, SoundGroups and effects are still to do.
  • [x] Skinned meshes and animation from glTF (see section 7).
  • [x] Standalone export of a project as one executable: checked and documented its gaps, and fixed three. It now needs a main file, leaves out hidden files (such as .env), build and node_modules folders and an earlier export, and keeps the engine's execute permission on Linux and macOS.
  • [x] A binary place format for shipping, next to the text format: .gplace, with a string table and compact numbers, converted with Gamma place. Compression is left for later.
  • [x] Opt-in permissions for file system, processes and HTTP, declared in the project: Permissions in Gamma.json (Http, Files, Process, Serial, Location) and --sandbox for run and play. Assets loaded by URL are not covered yet.

5. UI (the open steps of plan.md) ​

  • [x] Step 25: gradients, shadows, images and transforms. ObjectFit, nine-slice, 2D transforms (drawn and hit tested), outer and inset BoxShadows, and linear, radial and conic gradient backgrounds with their repeating forms. Colour hints and several background layers are done too.
  • [x] Step 26: UI events and focus. Pointer down, up, move and wheel events, PreventDefault, pointer capture, PointerEvents, IsHovered, IsPressed and scoped keyboard Shortcuts. The capture phase, double click, drag and drop and gamepad focus come later.
  • [x] Step 28: style sheets. StyleSheet with selectors, specificity, var(), inherit/initial/unset and media queries, from tables, text and .gss files. Restyling only the affected nodes, transitions and reloading changed files are done too.
  • [x] Step 29: reactive state and animation. Ui.State, Ui.Computed, bound props and children, Ui.ForEach with keys, Ui.Animated, Transition, @keyframes with Animation, and states in style sheets.
  • [x] Step 30: text input and the widget library. TextInput, ScrollView and the widgets (Button, Checkbox, Switch, Slider, RadioGroup, Select, NumberInput, ColorPicker, Table, Tree, MenuButton, Tabs, Dialog with focus kept inside, Tooltip, VirtualList, Widgets.Theme), plus ScrollIntoView.

6. Documentation ​

  • [x] A Gama tutorial that builds a small game step by step (gama-tutorial.md), with the game as Examples/CrateCatch.
  • [x] A list of every Gama keyword and literal with one example each, for quick lookup (the cheat sheet at the end of gama.md).
  • [x] Describe each example in Examples/README.md with what it shows and how to run it (it already did; the Gama demo now shows the newer features).
  • [x] Examples/README.md documented a PiConsole example deleted along with the CFrame to Transform rename (a3c4af0). The user chose to drop it, so the example and its README section are gone.
  • [x] A changelog (CHANGELOG.md), written from the [MINOR], [MAJOR] and [FIX] commits. Generating it is still open.

7. Second list ​

Written once the first list ran down to items that need Windows, a GPU or a large build. Roughly in the order they will be taken.

UI events and input ​

  • [x] Double clicks: ClickCount on PointerEvent (1, 2, 3 within 500 ms and 4 px of the last press), and a DoubleClick event, so a table row or tree row can open on a double click.
  • [x] The capture phase: PointerDownCapture, PointerUpCapture, PointerMoveCapture, ClickCapture and KeyDownCapture fire from the surface down to the target before the bubbling events, and StopPropagation there ends the whole dispatch, as addEventListener(..., true) does.
  • [x] Drag and drop inside a surface: Draggable nodes fire DragStart(event) after 4 px of movement with a payload set on the event, nodes under the pointer get DragEnter, DragOver, DragLeave and Drop, and :drag-over styles the one being hovered.
  • [x] Arrow-key focus: Surface.SpatialNavigation moves focus to the nearest focusable node in the arrow's direction when no handler prevents the key. The D-pad and A button are left until the engine reads gamepads at all, which needs a graphics build to check.
  • [x] Dragging scroll bars, and paging with a press beside the thumb. Touch scrolling waits for touch input, which the engine does not read yet.

UI styling and paint ​

  • [x] Colour hints in gradients: a lone percentage between two stops (red, 30%, blue) moves the midpoint of the blend, as CSS does.
  • [x] Several background layers: comma-separated Background values, drawn last to first, so a gradient can sit over a colour or an image.
  • [x] Restyle only the affected nodes: a class, attribute or state change on a node restyles that node, and its descendants or siblings only when a sheet has a selector that looks at them, instead of every node in the surface.
  • [x] Ui.Spring and spring transitions: a state that follows a goal with stiffness and damping, and Transition: "Transform spring(300, 20)".

Widgets ​

  • [x] ProgressBar and Spinner: determinate and indeterminate progress, the indeterminate one animated with @keyframes in the theme.
  • [x] Toasts: Widgets.Toast(surface, text, { Duration, Variant }) stacks short messages in a corner, with enter and leave transitions.
  • [x] ContextMenu: a menu that opens at the pointer on a right click (Button2), reusing the list from Select and MenuButton.
  • [x] Accordion (sections that open one at a time or several) and Splitter (two panes with a draggable divider, sizes kept in a state).
  • [x] Table: resizable columns by dragging header edges, and a virtualised body for thousands of rows.
  • [x] Tree: lazy children loaded when a branch first opens, and multi-select with Shift and Control.

Text ​

  • [x] Selecting and copying any text with UserSelect = "Text": drag to select across a Text node, Control+C copies.
  • [x] Inline spans: Ui.Text({ Spans = { ... } }) with bold, colour and size runs in one paragraph that wrap together.

Gama and tools ​

  • [x] A tree-sitter grammar for Gama, for Neovim, Helix and Zed (carried over from section 2): Editors/TreeSitter, with highlight, scope and fold queries, Helix's capture names generated from Neovim's, corpus and highlight tests, and a ctest that parses every .gma file in the repository when the CLI is installed.
  • [x] Gamma test [Folder]: finds *.spec.luau and *.spec.gma, runs each with a built-in test and expect library, prints a summary and exits with 1 on a failure, so games get the test runner the engine uses.
  • [x] Gamma check lints: unused let bindings and parameters, unreachable code after return, and shadowed names, as warnings with quick fixes in the language server.
  • [x] Generate the changelog from commit titles since the last tag (dev/Changelog.py), grouped by [MAJOR], [MINOR] and [FIX], for release notes.

Engine ​

  • [x] Ogg Vorbis sounds, SoundGroup volumes, and the first effects (ReverbSoundEffect, EqualizerSoundEffect) on miniaudio's node graph.
  • [x] Compressed binary places: zstd or LZ4 over the .gplace payload, if vcpkg has one installed.
  • [x] Permissions for assets loaded by URL, under Http.
  • [x] Skinned meshes and animation from glTF (carried over from section 4): bones, weights and animations are loaded and posed on the CPU, uploaded per part, and played with MeshPart:PlayAnimation. Skinning on the GPU, and raycasts against the posed model, are left for later.
  • Keep the window when play --watch restarts: moved to section 9.

8. Third list ​

Written once the second list was done, apart from the item that needs a display. The same rules hold: each item is independent, and items that need a GPU, a display or Windows say so. Its open items moved to section 9, in order of priority.

Gama ​

  • [x] try and catch: try ... catch err ... finally ... end. The body and the catch run in protected calls, a return in either is passed out through a sentinel value, and break, continue and ... that would cross the boundary are errors. The formatter, the language server's colouring, the VS Code and tree-sitter grammars all know it.
  • [x] Pipe operator: value |> f(a) as f(value, a), for chains of transforms without nesting. The function moves to the start of the value, so every line keeps its place; a pipeline can be a statement, and the formatter indents lines that start with |>.
  • [x] Richer match patterns: ranges (when 1..5, when 0..<n), guards (... if cond, which can use the names a pattern gives), table shapes (when { kind = "hit", damage }) that bind fields, and when let n, in match statements and expressions.
  • [x] Exhaustive match over an enum: Gamma check warns when a match on a value typed as an enum has no else and misses an item. The transpiler records each match whose cases are plain values, and the workspace reads the subject's type and the values' types from Luau's checked module.
  • [x] Destructuring in for: for { x, y } in points do and for i, [a, b] in ipairs(list) do. A pattern on its own takes each value rather than the key, and a counting loop cannot have one.
  • [x] Static class members and getters: static fn and static fields on a class, and get name() properties computed on read.

Tools ​

  • [x] Test runner: hooks and filters: Test.beforeEach, afterEach, beforeAll and afterAll, Gamma test --filter <text>, and --watch to run again when a file changes.
  • [x] Test runner: JUnit XML with --junit <File>, so CI systems show each test.
  • [x] Gamma docs <Output>: an API reference in Markdown, one page per class, datatype and enum, written from the class registry and the definitions.
  • [x] Language server: require paths: completion of module paths inside require("./...") and asset "...", and go to definition on them.
  • [x] Language server: document links and colour swatches for $ff8800 colours and asset paths.
  • [x] Gamma check --watch, which prints the diagnostics again whenever a file changes.

Engine: scripting API ​

  • [x] EncodingService: Base64Encode, Base64Decode, CompressBuffer and DecompressBuffer (zlib, which the engine already links) and ComputeBufferHash (SHA-256, already in Core/Sha256), on buffers, as Roblox has.
  • [x] Instance:QueryDescendants(selector): find instances with a CSS-like selector (Part.Hazard[Anchored=true] > Attachment). The UI selector parser is tied to UI nodes and their pseudo-classes, so instances got a parser of their own, with Roblox's $ attributes and >>.
  • [x] ContextActionService: BindAction(name, handler, inputs...), UnbindAction, priorities and Sink or Pass results, so games map keys, mouse buttons and gamepad buttons to actions. Gamma reads no gamepad yet, so only keys and mouse buttons bind.
  • [x] Shape casts: Scene:Spherecast, Blockcast and Shapecast. They sweep the shapes analytically, as Raycast does, so the answer is the same with physics on or off; a MeshPart counts as its box.
  • [x] Raycasts against posed models: a playing MeshPart animation is hit where it is drawn, by refitting the model's hierarchy over the posed triangles.
  • [x] PathfindingService: CreatePath(params) and Path:ComputeAsync(start, goal) over a grid of the scene's parts, with A* and agent radius and height.
  • [x] A character controller: a CharacterController instance with Move(direction), Jump(), slopes, steps and OnGround, for walking games. It sweeps its capsule with the shape casts rather than Jolt's virtual character, so it works with physics on or off and can be tested headless.

9. Priority list ​

Ranked against Godot, Unity, Unreal and Roblox: first the features nearly every engine has and games actually use, and the optimizations and profiling they all rely on; then the rest of the gameplay, networking, tools and UI work. Work goes from the top. Items that need a GPU, a display or Windows are at the end, since they cannot be checked here.

What Gamma already has that those engines share, so it is not listed again: frustum culling and instanced drawing of parts, PBR lighting with shadow maps, SSR, AO, TAA, bloom and tone mapping, a CPU and GPU frame profiler (--profile), Jolt physics on a fixed step with collision groups, raycasts and shape casts, a character controller, grid pathfinding, skinned animation with blending and markers, particles, 3D sound with effects and groups, tweens, keyboard and mouse input with Actions, data stores, places and hot reload.

Done from this list ​

  • [x] ParticleEmitter: Roblox's emitter properties, Emit and Clear, simulated on the CPU and tested particle by particle, with GetParticles() for scripts. Particles are drawn as thin camera-facing squares through the transparent part pass, so no new shader was needed; that hookup is written but not compiled here, as there is no graphics build, and Texture is not drawn yet.
  • [x] Animation blending: MeshPart:LoadAnimation(name) returning an AnimationTrack with Play(fadeTime, weight, speed), Stop(fadeTime), AdjustWeight, AdjustSpeed, Priority, Looped, TimePosition, IsPlaying and Stopped/DidLoop, so several animations pose one model at once, blended by weight and fading in and out. PlayAnimation stays as the one-track shortcut.
  • [x] Animation events: AnimationTrack:AddMarker(name, time, value), GetMarkers, RemoveMarkers and GetMarkerReachedSignal(name), firing on every loop and backwards. Markers in model files are not read yet, since assimp does not pass glTF animation extras on; reading them needs a small glTF JSON pass of our own.
  • [x] More sound effects: EchoSoundEffect, DistortionSoundEffect, CompressorSoundEffect, PitchShiftSoundEffect, ChorusSoundEffect, FlangeSoundEffect and TremoloSoundEffect, on the effect node the equalizer and reverb use, each checked on rendered samples in tests.

1. Core features and optimizations every engine has ​

  • [x] A spatial index for scene queries: PartIndex, a dynamic bounding-volume tree over the parts in Scene with fat leaves and Box2D's rotations, refreshed lazily from the parts' change notifications. Raycast, the shape casts, GetPartBoundsInBox, GetPartBoundsInRadius and GetPartsInPart use it (so the character controller does too); posed MeshParts are tested whole, since an animation can move them outside their box. Tests compare it with walking every part as parts move, leave and arrive, and 300 raycasts among 10,000 parts take about 1 ms rather than 145. Pathfinding still gathers its parts once per search.
  • [x] A Stats service and a script profiler: Stats with FrameTime, FramesPerSecond, PhysicsStepTime, InstanceCount, PartCount, GetTotalMemoryUsageMb() (resident memory on Linux, macOS and Windows) and GetProfile() (the frame profiler's zones), and --profile-scripts <File> for run and play, sampling Luau stacks at about 1 kHz through the VM's interrupt callback into folded stacks for speedscope or flamegraph.pl.
  • [x] Camera controllers: Camera.CameraType (Roblox's values: Custom, Follow, Attach, Watch, Track, Orbital, Fixed, Scriptable), CameraSubject, MinZoomDistance, MaxZoomDistance, FocusOffset and Zoom. The current camera orbits with the right mouse button, zooms with the wheel and pulls in front of walls with a raycast. Gamepad orbit waits on gamepad input, below.
  • [x] Gamepad and touch input: Gamepad1 to Gamepad8, Roblox's gamepad KeyCodes, GetConnectedGamepads, GetGamepadConnected, IsGamepadButtonDown, GetGamepadState, GamepadConnected and GamepadDisconnected; TouchStarted, TouchMoved, TouchEnded and TouchTap with one InputObject per touch; Actions binds gamepad buttons; the right stick turns the camera; VirtualInput sends both for tests. The window reads them with SDL3's gamepad and finger events, which is written but not compiled here. Left for later: HapticService rumble, and pinch, pan and rotate gestures.
  • [x] Debug drawing: the Debug service with DrawLine, DrawRay, DrawBox, DrawSphere, DrawPath, Clear, GetLineCount and Enabled, each shape lasting one frame or a duration in game time. The renderer draws the lines as thin neon boxes in the transparent pass, which is written but not compiled here. Text in the world waits on BillboardGui.
  • [x] An animation state machine: Animator in a MeshPart, with AddState, AddBlendState (a 1D blend by a number parameter), AddTransition on number, bool and trigger conditions with fade and exit times, SetNumber, SetBool, SetTrigger, SetState, CurrentState and StateChanged. It plays its states as Core tracks, so scripted tracks go on top. 2D blend spaces and sub-state machines are left for later.
  • [x] Render interpolation: BasePart::GetRenderCFrame is the part between the simulation's last two fixed steps, set by PhysicsWorld after every frame and cleared when a script moves the part. The renderer, shadows, part lights and the camera's subject use it; scripts and queries keep the simulated CFrame. The drawing side is written but not compiled here.
  • [x] Mesh levels of detail: BuildMeshLevels simplifies each primitive of 64 triangles or more with meshoptimizer (borders locked, each level at most 4/5 of the one before, error at most a tenth of the model's box) into up to four index buffers over the same vertices; MeshPart:ChooseLevel picks the coarsest under 1 pixel (4 with RenderFidelity.Performance, none with Precise), and the mesh renderer groups instances by level. Simplification and selection are tested; the drawing is written but not compiled here.
  • [x] Preloading: the Content service with PreloadAsync(assets) (content ids and instances, yielding on a worker thread until every model and image has loaded or failed, returning each id's Enum.AssetFetchStatus), RequestQueueSize and GetAssetFetchStatus. Preloaded assets are held for the game's life. Roblox's progress callback is left out, as methods cannot take Luau functions yet; RequestQueueSize serves loading bars.
  • [x] Inverse kinematics: IKControl in a MeshPart, with an exact two-bone solver bending towards Pole, cyclic coordinate descent for longer chains, Rotation and LookAt types, Weight and Priority, solved after the animation layers in PoseMeshNodes. MeshPart:GetNodeTransform(name) reads a posed node in world space. Roblox's SmoothTime and joint constraints are left for later.

2. Audio ​

  • [x] Sound regions and roll-off: PlaybackRegion and LoopRegion (NumberRanges in seconds) with PlaybackRegionsEnabled, RollOffMode (Inverse, Linear, InverseTapered, LinearSquare), and PlaybackLoudness, so music loops cleanly and 3D sounds fade as Roblox's do.
  • [x] Sounds from buffers: Audio:CreateSound(samples: buffer, sampleRate, channels) for audio made in code (blips, tones, sfxr-style effects), and Audio:GetSpectrum(bands) of what is playing, for visualisers.

3. Networking and multiplayer ​

  • [x] WebSockets: built as Roblox's Http:CreateWebStreamClient(Enum.WebStreamClientType.WebSocket, {Url, Headers}) and WebStreamClient (Send, Close, ConnectionState, Opened, MessageReceived, Closed, Error), through curl's WebSocket support (the vcpkg websockets feature) and under the Http permission, tested against an echo server in the test. Left: the web build (emscripten's WebSocket API), and the SSE and RawStream client types.
  • [x] Multiplayer, step one: built on ENet: NetHost, the Network service (StartServer, Connect, Stop, IsServer, IsClient, Connected, Disconnected), Players and Player (UserId, Kick), RemoteEvent (FireServer, FireClient, FireAllClients) and RemoteFunction (InvokeServer, OnServerInvoke), with Gamma serve, --serve and --connect, tested with a server and two clients in one process and by scripts on both sides. Left: InvokeClient, and the web build (it has no UDP, so it would need WebSockets on the server).
  • [x] Multiplayer, step two: SceneReplicator and SceneMirror copy the Scene (instances, saved properties, references, reparenting and removals, batched each step, the snapshot sent with the welcome), and SetNetworkOwner/GetNetworkOwner let a client simulate its parts and report them, which is how Roblox moves a local character without waiting. Left: attributes, the other services (Lighting, a shared storage folder), interpolating moves between steps on clients, unreliable channels for positions, and server-side checks on owners.

4. 2D games ​

  • [x] Sprites and tile maps: a 2D layer with Sprite and AnimatedSprite from sprite sheets, a TileMap with tile sets and per-tile collision, a 2D camera, and 2D collision queries, as Godot's and Unity's 2D tools. Drawn through the UI renderer's quads, so the logic and collision can be tested here. Left: rotated hitboxes, tile animation, per-cell flips, a tile map editor, and drawing it on a real window still needs checking.

5. Examples and docs that show the gameplay work ​

  • [x] A character example: a small project where a skinned glTF character walks with CharacterController, blends idle, walk and jump animations, kicks up particles and plays footstep sounds from animation markers. The model is made for it or under a permissive licence. Done as Examples/Character, with a blocky robot written by dev/MakeRobot.py. Left: seeing it in a real window.
  • [x] A cookbook page: short recipes for the common jobs (a main menu, saving settings, a timer, a health bar, a tween, a raycast pick, a path to follow, key bindings with Actions), each in Gama and Luau. Done as cookbook.md; every recipe was run headless and the Gama ones pass Gamma check. Left: a test that runs them, so they can't drift.

6. UI ​

  • [x] Widgets.Markdown: renders headings, paragraphs, emphasis, links, lists, code blocks and tables from Markdown text into UI nodes and rich text, for help screens and changelogs. Left: italic (needs italic faces), syntax colours in code blocks, and reference-style links.
  • [x] Widgets.VirtualList: a list that builds only the rows in view, for any row height, which the Table's virtualised body can share. ItemHeight takes a number, a function or "auto". Left: the Table still has its own fixed-height virtualisation.
  • [x] Widgets.ColorPicker: a saturation and value square, a hue slider, an alpha slider and a hex field, bound to a state. The alpha strip was the part missing; it shows when Alpha is given.
  • [ ] Widgets.CodeEditor: a multi-line TextInput with line numbers, Gama and Luau highlighting through Spans, indentation on Enter and Tab, and bracket matching.
  • [ ] A Gama UI app example that uses the newer widgets (Table, Tree, Toasts, Splitter, Markdown) and rich text.

7. Tools ​

  • [x] Gama that fits Gamma: on key Space, W do and on keyup for key presses that skip input a text box took, Part "Floor" { ... } to name a tree's instance, and dbg(...) to print values with their source and line while giving them back. ([MINOR] Add on key, named trees and dbg to Gama)
  • [x] Checked trees: Gamma check and the language server report a tree key that is not a property or event of its class (naming the closest), a method, a value of the wrong type and an enum string that is not an item, with quick fixes; the keys a tree does not set yet are completed first with their types, and hover shows a key's type. ([MINOR] Check and complete Gama trees against their class, and offer modules with their require)
  • [x] Modules in completion: the project's modules that a file does not require yet are offered by name, and picking one adds its require after the file's others. (same commit)
  • [ ] Descriptions in the API reference: the registry keeps types but no descriptions, so the reference lists members without saying what they do. Add a one-line description to each member where it is registered, and to each definition line.

8. Needs a GPU or a display ​

  • [ ] Instanced drawing of MeshParts: parts that share a model and a texture drawn in one instanced call, as parts already are, so a forest of one tree model costs one draw.
  • [ ] Occlusion culling: a hierarchical depth buffer from last frame's depth, testing each batch's box before drawing it, so parts behind walls are skipped; as Unity's and Unreal's occlusion culling.
  • [ ] BillboardGui and SurfaceGui: UI drawn in the world, facing the camera or on a part's face, for name tags, health bars and screens; as Roblox's, and Godot's and Unity's world-space canvases.
  • [ ] Skinning on the GPU: bone matrices in a uniform array and joints and weights as vertex attributes, in place of uploading posed vertices.
  • [ ] Keep the window when play --watch restarts.

Set aside for now ​

Taken off the list at the user's request, to come back to later: Widgets.Chart (line, bar and area charts on the vector canvas) and Ui.Router (pages by path with a back stack).

Apache License 2.0