#macroquad #canvas-2d

macroquad-canvas

Adds canvas functionality to Macroquad

9 releases

0.4.1 Aug 22, 2023
0.4.0 Aug 22, 2023
0.3.2 Apr 22, 2023
0.3.0 Jan 27, 2022
0.1.1 Jan 8, 2022

#1247 in Game dev

Download history 6/week @ 2025-08-24 1/week @ 2025-08-31 1/week @ 2025-09-14 3/week @ 2025-10-12 10/week @ 2025-10-19 7/week @ 2025-10-26

114 downloads per month

Apache-2.0

10KB
112 lines

Crates.io Lib.rs docs.rs License

Macroquad Canvas

This is a hard fork of the original macroquad-canvas-2d

A simple resolution-handling library for Macroquad that allows you to focus on making your games with fixed resolution.

If you're making a pixel game, then this library is for you!

How To Use

To use this library, import Canvas2D

use macroquad_canvas::Canvas2D;

Then simply create the canvas

let canvas = Canvas2D::new(800_f32, 600_f32);

And here's how to draw the canvas

loop {
    set_camera(&canvas.camera);

    // Draw inside canvas...

    set_default_camera();

    canvas.draw();

    next_frame().await
}

That's all you need to know to get started!
For more examples, check out the examples folder.

Dependencies

~13MB
~311K SLoC