qmetrics.net

macroquad

Cross-platform Rust game library and engine

A Rust game library for building 2D games on PC, mobile, and the browser. One codebase targets desktop, HTML5, Android, and iOS.

Overview

Macroquad is a Rust game library aimed at simple cross-platform game development, drawing design ideas from raylib. Developers add it as a normal Cargo dependency and write game code that runs on multiple targets without extra platform-specific defines.

Rendering focuses on efficient 2D drawing with automatic geometry batching. The stack keeps dependencies small and ships an immediate-mode UI library. Deploy workflows include single-command builds for WebAssembly and Android.

Supported run targets include Windows, Linux, and macOS on PC, HTML5 in the browser, and native Android and iOS builds. Async and await in examples support a cross-platform main loop, especially for WASM and Android where a blocking loop is awkward.

Community support covers native, WASM, and mobile build paths.

Key features

  • Shared code across listed platforms
  • 2D rendering with geometry batching
  • Immediate-mode UI included
  • WASM and Android deploy commands
  • Few Cargo dependencies
  • Async-friendly main loop pattern

Use cases

  • Rust hobby games
  • Browser games via WASM
  • Mobile games on Android or iOS
  • 2D prototypes on desktop

Tags

Similar software

Godot

Cross-platform 2D and 3D game engine

Godot Engine lets creators build 2D and 3D games from one editor and export to desktop, mobile, web, and console targets through publishers.

  • Unified 2D and 3D editor
  • Node and scene workflow
  • GDScript, C#, and C++ scripting
C++Web, Linux, macOS, WindowsDetails →
★ 121.4k⟳ todayMIT
Open Source Alternative to:Unity

Bevy

Rust game engine with ECS architecture

Bevy Engine is a data-driven Rust game engine for 2D and 3D work. It emphasizes modularity, parallel execution, and fast iteration while the project remains under active development.

  • Entity-component-system core
  • 2D and 3D renderers
  • Render graph pipelines
RustLinux, macOS, Windows, AndroidDetails →
★ 50.2k⟳ todayApache-2.0 · open core
Open Source Alternative to:Unity

PixiJS

HTML5 WebGL and WebGPU 2D graphics library

PixiJS is a browser library for fast 2D rendering with WebGPU or WebGL. It targets games, ads, apps, and interactive sites.

  • WebGPU and WebGL 2D rendering
  • Spritesheets and asset loader
  • Filters and custom shaders
TypeScriptWeb, CLIDetails →
★ 49k⟳ 4 days agoMIT

Phaser

HTML5 2D game framework with Canvas and WebGL

Phaser is a JavaScript and TypeScript framework for browser games on desktop and mobile, with scene APIs, physics, animations, and loaders. Games can target embed platforms or wrap for native stores via third-party tooling

  • Canvas and WebGL rendering
  • Scene-based game structure
  • Arcade and Matter.js physics
JavaScriptWebDetails →
★ 40.9k⟳ todayMIT

raylib

Minimal C library for games and graphical programs

raylib is a C99 graphics and game programming library with no mandatory external dependencies. It suits prototypes, tools, education, and embedded targets across desktop, mobile, and web.

  • Bundled dependencies in one library
  • OpenGL and software render paths
  • 2D, 3D, audio, and input modules
CLinux, macOS, Windows, AndroidDetails →
★ 35.9k⟳ yesterdayZlib

GDevelop

Cross-platform no-code game engine for 2D and 3D

GDevelop is no-code game development software for building 2D, 3D, and multiplayer games for mobile, desktop, and the web. It uses an event-based system, modular behaviors, and optional AI assistance.

  • No-code event-based game logic
  • 2D and 3D WebGL rendering
  • Modular attachable behaviors
JavaScriptWeb, Linux, macOS, WindowsDetails →
★ 29.6k⟳ todayMIT · open core
Game DevelopmentDesktop/CLI app
Open Source Alternative to:Unity