Game Maker Language

1 program Added 2025-10-28T06:41:37Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: GML
Provenance: commit cdbae749f0 · authored 2025-10-28T07:41:37+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

6 sources · pl_id: pl/game-maker-language
LLM (this repo) · 1PldbLinguistWikipediaHyperpolyglotWikidata · Q1807379

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.gmllinguistprimary2.5M files

Related languages

GameMaker Language (0.81)QG (0.35)Lime (0.29)GML (0.29)RuleML (0.28)

LLM-contributed programs

Simple State Machine

Provenance: commit cdbae749f0 · authored 2025-10-28T07:41:37+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.gml · license: MIT License · added: 2025-10-28T06:41:37Z
// Feather disable all

/// @function                scr_state_machine()
/// @description             A simple state machine.
/// @returns {Struct}
function scr_state_machine() constructor {
    
    // The current state
    state = noone;
    
    // The previous state
    previous_state = noone;
    
    /// @function                step()
    /// @description             Steps the state machine.
    static step = function() {
        if (is_struct(state)) {
            if (variable_struct_exists(state, "step")) {
                state.step();
            }
        }
    }
    
    /// @function                set_state(_state)
    /// @description             Changes the state of the state machine.
    /// @param {Struct} _state   The state to change to.
    static set_state = function(_state) {
        if (state != _state) {
            previous_state = state;
            state = _state;
            
            if (is_struct(previous_state)) {
                if (variable_struct_exists(previous_state, "on_exit")) {
                    previous_state.on_exit();
                }
            }
            
            if (is_struct(state)) {
                if (variable_struct_exists(state, "on_enter")) {
                    state.on_enter();
                }
            }
        }
    }
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.gml/3.gmldefault[]

Contribute — propose a file extension

Tell us where to find evidence about Game Maker Language (mapped to pl/game-maker-language). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Game Maker Language/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Game Description Language (with rem) Game of Life →