#macroquad #down #version #stripped #platform #game #graplot

litequad

Stripped down version of macroquad for graplot

1 unstable release

0.1.2 May 1, 2022
0.1.1 Apr 21, 2022
0.1.0 Apr 18, 2022

#3 in #stripped

Download history 17/week @ 2024-07-22 16/week @ 2024-07-29 19/week @ 2024-08-05 19/week @ 2024-08-12 35/week @ 2024-08-19 13/week @ 2024-08-26 15/week @ 2024-09-02 24/week @ 2024-09-09 24/week @ 2024-09-16 50/week @ 2024-09-23 29/week @ 2024-09-30 2/week @ 2024-10-07 21/week @ 2024-10-14 14/week @ 2024-10-21 21/week @ 2024-10-28 17/week @ 2024-11-04

73 downloads per month
Used in 4 crates (via graplot)

Apache-2.0

205KB
5K SLoC

litequad

Credits: macroquad / not-fl3

This is a stripped down version of macroquad for graplot.


lib.rs:

macroquad is a simple and easy to use game library for Rust programming language.

macroquad attempts to avoid any rust-specific programming concepts like lifetimes/borrowing, making it very friendly for rust beginners.

Supported platforms

  • PC: Windows/Linux/MacOS
  • HTML5
  • Android
  • IOS

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(~6years old laptop)
  • Immediate mode UI library included
  • Single command deploy for both WASM and Android build instructions

Example

use macroquad::prelude::*;

#[macroquad::main("BasicShapes")]
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_circle(screen_width() - 30.0, screen_height() - 30.0, 15.0, YELLOW);
        draw_text("HELLO", 20.0, 20.0, 20.0, DARKGRAY);

        next_frame().await
    }
}

Dependencies

~7–14MB
~229K SLoC