Discover and explore top open-source AI tools and projects—updated daily.
zipxingCross-platform 2D engine for retro and modern applications
Top 92.8% on SourcePulse
A 2D game engine designed for retro aesthetics and cross-platform compatibility, rust_pixel enables developers to write games and applications once and run them on terminals, desktops, and the web. It offers a high-performance, tile-first rendering pipeline and a unified abstraction layer, making it suitable for both experienced developers and beginners looking for a straightforward entry into 2D game development.
How It Works
The engine employs a "tile-first" philosophy, organizing scenes hierarchically from Scene > Layer > Sprite > Buffer > Cell. Its core architectural choice is a unified rendering abstraction that achieves high performance by utilizing a single texture and a single draw call. This approach, combined with a Model-Render-Game pattern and an event-driven system, facilitates the "Write Once, Run Anywhere" goal, allowing a single codebase to target native GPU windows (even for TUIs), traditional terminals, and web browsers.
Quick Start & Requirements
cargo install rust_pixel installs the cargo-pixel CLI. Running cargo pixel clones the workspace to ~/rust_pixel_work.wasm-pack is needed for web builds.doc/ directory.Highlighted Details
pixel_basic allows game logic to be written in familiar BASIC syntax, ideal for beginners or rapid prototyping.Maintenance & Community
The README does not detail specific contributors, sponsorships, or community channels like Discord or Slack. A roadmap for 2026 is linked (doc/roadmap_2026.md).
Licensing & Compatibility
The project is licensed under the Apache 2.0 license. This license is permissive and generally compatible with commercial use and linking in closed-source projects.
Limitations & Caveats
Terminal mode requires a Nerd Font for proper display. Web builds necessitate the wasm-pack tool. The minimum supported Rust version is 1.71. While the engine aims for broad cross-platform consistency, specific platform nuances or performance characteristics may vary.
1 month ago
Inactive