Documentation
Guides & reference
Everything you need to build Vectrex games — in VPy or in C.
Common to VPy and C
Projects, the SDK, the editors, the emulators, debugging and the cartridges work the same in both languages. Start with how VPy and C correspond.
Hardware & Cartridges
IDE Tools
- IDE SettingsThe Settings panel (build target and its options) and the Project Settings panel (pinned SDK version and Arm toolchain).
- Input & ShortcutsJoystick and gamepad configuration, keyboard-to-Vectrex button mapping, and the full keyboard shortcut reference.
- Git IntegrationBuilt-in Git panel: staging, committing, branching, push/pull, diff viewer, stash, conflict resolution, and commit history search.
- Terminal, Claude Code & MCPThe integrated terminal, Claude Code connected to the IDE through its MCP server, the full MCP tool list, pasting images, and the built-in PyPilot assistant.
- EPROM ProgrammerFlash your compiled ROM to a physical EPROM chip using a TL866 or compatible programmer, directly from the IDE.
Emulator & Debugging
- Emulators & SimulatorThe emulators built into the IDE: JSVecX for the 6809, ARM emulators for the RP2350 cartridge and the UVMC2 multicart, the WASM simulator for C projects, and the video recorder.
- DebuggingBreakpoints, stepping, call stacks and live values for VPy and C, in the emulator and on real cartridges over USB or SWD.
Asset Editors
- Vector EditorDraw and edit .vec vector assets — the building blocks for every sprite, platform, and background in a VPy game.
- Animation EditorCreate frame-by-frame vector animations (.vanim) for player characters, enemies, and effects.
- PlaygroundVisual level editor for .vplay files — place objects, paint walkable areas, configure enemies, hotspots, scroll limits, and test with live physics simulation.
- Enemy EditorDefine enemy types (.venemy) — sprites, stats, AI behaviour, patrol routes, and optional state machines.
- Music EditorCompose looping game music (.vmus) for the AY-3-8910 PSG — piano roll interface with MIDI import.
- SFX EditorDesign sound effects (.vsfx) with ADSR envelope, pitch sweep, noise, and arpeggio — with live audio preview.
- Instrument EditorDesign reusable AY-3-8910 instrument presets (.vinstr) with arpeggio, pitch sweep, noise, and an audio analyzer that maps real sounds to PSG parameters.
- 3D EditorsThe Mesh Editor for .vmesh models and scenery, the Scene Editor for .vscene sets, and the 3D Animation editor for .vskel skeletons and .vclip poses, clips and sets.
VPy
The Python-like language: syntax, builtins, the compiler and its targets, and 3D.
Language & Compiler
- VPy LanguageSyntax, types, structs and enums, arrays, modules, control flow, functions and built-in calls — the complete VPy reference, with what each target supports.
- Compiler & Build TargetsThe vpy_cli compiler: its four targets and what each produces, the C backend, debug info, errors with file and line, multibank ROMs, assets and the project file.
- 3D in VPyMeshes and scenes in perspective with hidden-line removal, a camera, occluders, fog, text in the world, effects, skeletons and soft bodies — the 3D builtins of VPy.
C
C and C++ projects in the IDE, and the C SDK they build on: libraries, hardware, sound, storage, debugging and arcade ports.
Getting Started
- OverviewWhat the Vectrex Studio SDK is, which cartridges it runs on, and how it is organised.
- InstallationInstall the toolchain, set up the starter kit, build your first .um2 image and run it on a real Vectrex.
- Your First GameThe build chain from Makefile to .um2, the smallest game that works, and the build options that matter.
- ExamplesThe example programs in the starter kit: what each one shows, which libraries it uses, and where to find it.
- Calibrating a ConsoleWhy the beam is calibrated per console, how to open the calibration screen, and what each field fixes.
Hardware & Runtime
- How the Engine WorksA complete, measured walk through the SDK's drawing engine: the bus rule, the beam model, a frame command by command, the PIO program, the DMA ring and the dual-core split.
- The HardwareWhat the cartridge is, what a .um2 image contains, and why an SDK game drives the Vectrex's VIA itself.
- The Command ListHow a frame is recorded as a list of VIA writes, what each command costs, and what happens when the list fills up.
- DrawingThe beam model: how a stroke becomes hardware, sub-unit geometry, re-zeroing, and what actually costs time.
- Dual Core, PIO and DMAHow the SDK keeps the beam moving while the CPU works: the core split, the PIO bus program and the DMA feed.
Sound, Input & Storage
- SoundThe PSG, digitised samples injected into the draw list, and the UVMC2's 16-bit audio jack with a small voice mixer.
- InputReading the buttons and joysticks, digital versus analog sticks, and what the console's reset button does in an SDK game.
- SD Card & PSRAMReading, writing and streaming files on the SD card, loading arcade romsets, and what the 8 MB of PSRAM is good for.
Libraries
- libvpyThe game library most SDK games are written against: lifecycle, drawing, text, input, math, sound and levels, in integer C.
- vpy3d — 3DMeshes with hidden-line removal, a camera and projection, solids that hide each other, dents, shot marks, text in the world, stereo, level of detail and terrain.
- Physics & impact soundsvpyphys — deterministic rigid bodies, hulls, joints and ray casts — and vpyimpact, the sound of things hitting each other synthesised from the hit.
- Effects, camera & easingvpyfx for sparks, shattering, disintegration and shockwaves; vpycam for a camera that follows, shakes and holds; vpyease for curves and tweens.
- AnimationSkeletal animation with keyframed clips and two-bone IK, soft bodies (cloth, blobs, jelly meshes), and ropes.
- Entities, AI & replaysvpyent ties meshes, bodies, occluders, marks and sounds into one table; vpyai steers and finds paths; vpyreplay records input and plays it back exactly.
- Low-level APILevel 2, the backend-neutral PiTrex/host contract; Level 3, the cartridge runtime (drawing, bus, input, sound, storage, calibration); and the syscall ABI.
Debugging
- Debugging on HardwareThe counters that tell one fault from another, the on-screen HUD, and reading a running console over SWD with a Pico as the probe.
- Host ToolsAnalysing frames on a laptop with the real emitter, capturing the list the console actually ran, and the measurement rules that keep results honest.
Arcade Ports
- Porting from MAMEUsing a MAME driver as the specification for a Vectrex port, and choosing between emulation, translation, or writing the game fresh.
- Porting an AAE GameLinking an AAE arcade driver into a cartridge image: feasibility checks, the eight pieces you write, and the bring-up order, using Tac/Scan as the example.