Other engines quickref

From makifbaysal/tasktrooper · View interactive version

Other engines quickref is an AI agent skill from the GitHub repository makifbaysal/tasktrooper. Use when the repository is Defold, MonoGame, pygame/pygame-ce, Excalibur or KAPLAY (or melonJS, Stride, Python arcade, macroquad/ggez) - each engine's lifecycle and delta, where logic goes, the test runner, the headless build/run command, and how to capture a frame.

How to use this skill

Skill file

Other Engines Quick Reference

Overview

Smaller engines follow the same rules as the big ones — fixed-step simulation, delta-scaled time, rules in testable plain modules, no allocations per frame, data out of code — with their own lifecycle names and tools. Find the engine's conventions in the repository first; this page is the map when they are thin.

Core principle: Same discipline, local vocabulary. Identify the loop callback and its delta unit, put rules in plain modules the language's test runner can import, and find the command that builds and runs headless.

At a glance

| Engine | Language | Per-frame callback, delta unit | Fixed step | Rules tested with | Headless build / run | Frame capture |

|---|---|---|---|---|---|---|

| Defold | Lua | update(self, dt) — seconds | fixed_update(self, dt) when enabled in game.project | plain Lua modules + the repo's runner (busted, or an in-engine runner such as deftest/telescope) | java -jar bob.jar --platform <platform> resolve build; dmengine_headless for in-engine tests | screenshot extension, or none headless |

| MonoGame | C# | Update(GameTime) — gameTime.ElapsedGameTime.TotalSeconds | IsFixedTimeStep = true (default), TargetElapsedTime | class library + xUnit/NUnit, dotnet test | dotnet build; content via dotnet mgcb / the .mgcb project | RenderTarget2D → SaveAsPng (needs a graphics device) |

| pygame / pygame-ce | Python | your loop: dt = clock.tick(60) / 1000 — seconds | your accumulator | pytest | SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=dummy python -m game --frames 120 | pygame.image.save(screen, path) — works headless |

| Excalibur | TypeScript | onPreUpdate(engine, elapsed) — milliseconds | the engine's fixed-update option (fixedUpdateFps in recent versions) | Vitest | npm run build; browser for running | browser tools / Playwright |

| KAPLAY | JS/TS | onUpdate(() => ...) with dt() — seconds | the engine's fixed update for body() physics | Vitest on modules outside the kaplay() context | npm run build; browser for running | browser tools / Playwright |

Defold

MonoGame

public sealed class ArenaGame : Game {
    readonly GraphicsDeviceManager _graphics;
    SpriteBatch _batch; World _world;                         // World: plain C# rules from Game.Core
    public ArenaGame() { _graphics = new GraphicsDeviceManager(this); IsFixedTimeStep = true; TargetElapsedTime = TimeSpan.FromSeconds(1.0 / 60); }
    protected override void LoadContent() { _batch = new SpriteBatch(GraphicsDevice); _world = new World(Content.Load<WorldData>("arena")); }
    protected override void Update(GameTime t) { _world.Step((float)t.ElapsedGameTime.TotalSeconds, InputMapper.Read()); base.Update(t); }
    protected override void Draw(GameTime t) { GraphicsDevice.Clear(Color.Black); _batch.Begin(samplerState: SamplerState.PointClamp); WorldRenderer.Draw(_batch, _world); _batch.End(); base.Draw(t); }
}

pygame / pygame-ce

def run(frames: int | None = None) -> None:
    pygame.init()
    screen = pygame.display.set_mode((1280, 720))
    clock, world = pygame.time.Clock(), World(load_tuning("data/tuning.json"), random.Random(SEED))
    hero = pygame.image.load("art/hero.png").convert_alpha()      # convert once, never per frame
    acc, step, n = 0.0, 1 / 60, 0
    while frames is None or n < frames:
        acc += min(clock.tick(120) / 1000, 0.25)
        for event in pygame.event.get():
            if event.type == pygame.QUIT: return
        while acc >= step:
            world.step(step, read_intents()); acc -= step
        draw(screen, world, hero); pygame.display.flip(); n += 1

Excalibur

KAPLAY (the maintained successor of Kaboom)

Also detected as games

Common Mistakes

Red Flags

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.