Compile a static, pygame-flavored Python subset to C for retro game consoles. This is the shared compiler front-end for the console SDKs gbapython (Game Boy Advance), mdpython (Sega Genesis), and gtpython (GameTank) — the Python-language sibling of the gtlua/gbalua/mdlua family.
Write the Python you learned in class; get a real console ROM. Familiar,
not compatible — see SPEC.md and each SDK's DIFFERENCES.md.
Early bring-up (0.0.x), co-developed with gbapython. See
internal-pycretro/PLAN_00_common_frontend.md.
lex → parse → check → emit, producing C that a bundled WASM toolchain
builds into a ROM. The AST is shared with the Lua-family emitter; the
front-end (indentation lexer, Python parser, refusal diagnostics) is new.
| SDK | platform | native resolution |
|---|---|---|
| gbapython | Game Boy Advance | 240 x 160 |
| mdpython | Sega Genesis | 320 x 224 |
| gtpython | GameTank | 128 x 128 |
set_mode() must use the SDK'''s native size exactly.