Skip to content
Mike Wright edited this page Feb 12, 2026 · 3 revisions

vectorcade-shared

Pure Rust API contracts for the VectorCade arcade game platform.

vectorcade-shared is the root of a multi-repo dependency graph for building vector graphics arcade games in Rust. It provides traits, types, and utilities that downstream crates depend on.

Quick Links

Features

  • Display-list rendering - Games emit DrawCmd commands
  • Game lifecycle - Game trait with update/render loop
  • Input abstraction - Keyboard, gamepad, pointer via InputState
  • Vector fonts - VectorFont trait for stroke-based glyphs
  • Collision detection - AABB, circle, line intersection
  • Math utilities - Interpolation, screen wrapping, 3D projection
  • Projectile systems - 2D and 3D projectiles with collision
  • Deterministic RNG - GameRng trait for replay support

Crate Overview

graph TD
    subgraph Workspace
        CORE[vectorcade-core]
        MATH[vectorcade-math]
        SHARED[vectorcade-shared]
    end

    CORE -->|re-exported by| SHARED
    MATH -->|re-exported by| SHARED

    SHARED -->|consumed by| FONTS[vectorcade-fonts]
    SHARED -->|consumed by| RENDER[vectorcade-render-wgpu]
    FONTS -->|consumed by| GAMES[vectorcade-games]
    RENDER -->|consumed by| GAMES
Loading

Repository

Clone this wiki locally