About this project

Macroquad is a simple and easy-to-use game library for the Rust programming language, heavily inspired by raylib. It allows developers to write the same code for all supported platforms without platform-specific defines, making cross-platform game development straightforward. Key features include: - Efficient 2D rendering with automatic geometry batching. - Minimal dependencies, with fast build times (e.g., 16 seconds on a 6-year-old laptop after a clean build). - An immediate-mode UI library included. - Single-command deployment for both WASM and Android. Supported platforms: PC (Windows, Linux, macOS), HTML5, Android, and iOS. The README provides detailed build instructions for setting up a new project, including adding macroquad as a dependency, writing a basic example, and running it natively. It also covers system dependencies for Linux distributions, Windows support (including cross-compilation from Linux), building for WASM with an HTML loader, and iOS simulator setup. Additionally, it explains the use of async/await in macroquad to handle cross-platform main loop organization, particularly for WASM and Android, without external runtime dependencies. Community resources include a Discord server and an Awesome Quads list. The project is supported by Platinum sponsor SourceGear.