{"repo":"not-fl3/macroquad","free":true,"listed":false,"github":"https://github.com/not-fl3/macroquad","clone":"git clone https://github.com/not-fl3/macroquad.git","description":"Cross-platform game engine in Rust.","language":"Rust","stars":4583,"topics":["wasm","rust","android","ios","game-engine"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"macroquad macroquad is a simple and easy to use game library for Rust programming language, heavily inspired by raylib. Features Same code for all supported platforms, no platform dependent defines required. Efficient 2D rendering with automatic geometry batching. Minimal amount of dependencies: build after cargo clean takes only 16s on x230( 6 years old laptop). Immediate mode UI library included. Single command deploy for both WASM and Android. Supported Platforms PC: Windows/Linux/macOS; HTML5; Android; IOS. Build Instructions Setting Up a Macroquad Project Macroquad is a normal rust dependency, therefore an empty macroquad project may be created with: Add macroquad as a dependency to Cargo.toml: Put some macroquad code in src/main.rs : And to run it natively: For more examples take a look at Macroquad examples folder Linux Windows On windows both MSVC and GNU target are supported, no additional dependencies required. Also cross-compilation to windows from linux is supported: WASM This will produce .wasm file in target/wasm32-unknown-unknown/debug/CRATENAME.wasm or in target/wasm32-unknown-unknown/release/CRATENAME.wasm if built with --release . And then use the following .html to load it: index.html One of the ways to server static .wasm and .html: IOS To run on the simulator: For details and instructions on provisioning for real iphone, check https://macroquad.rs/articles/ios/ Tips Adding the following snippet to your Cargo.toml ensures that all dependencies compile in r","default_branch":null,"files":null,"tree":[],"storefront":"/r/not-fl3","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/not-fl3/macroquad/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}