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-languageExtensions 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.| Extension | Source | Strength | SWH |
|---|---|---|---|
.gml | linguist | primary | 2.5M files |
Related languages
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
// 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.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.gml/3 | .gml | default | [] |