First class browsers support, WebGL1 and iOS Safari supported.
Single command docker-powered android builds.
Export to XCode project for iOS.
Linux/Mac/Windows with no external system dependencies.
UI, efficient 2D rendering, sound system—everything needed to make a 2D game included!
Macroquad has a simple, small API that's quick to get started with.
cargo new my_game
cargo add macroquad
src/main.rs
:
use macroquad::prelude::*;
#[macroquad::main("MyGame")]
async fn main() {
loop {
clear_background(RED);
draw_line(40.0, 40.0, 100.0, 200.0, 15.0, BLUE);
draw_rectangle(screen_width() / 2.0 - 60.0, 100.0, 120.0, 60.0, GREEN);
draw_text("Hello, Macroquad!", 20.0, 20.0, 30.0, DARKGRAY);
next_frame().await
}
}
cargo run