Crates.io | roast2d |
lib.rs | roast2d |
version | 0.0.10 |
source | src |
created_at | 2024-09-23 14:53:00.160605 |
updated_at | 2024-10-27 09:44:18.989363 |
description | Roast2D is a homebrew 2D game engine inspired by high_impact |
homepage | |
repository | https://github.com/jjyr/roast2d |
max_upload_size | |
id | 1384187 |
size | 296,543 |
Roast2D is a rapid development 2D game engine written in Rust. Inspired by high_impact.
I wrote an article explaining why Roast2D was made
Poor man's ECS, no archetype, just a little bit ECS to improve the composition ability
Simple physics and collision
LDTK editor integration
Multi-platform (via SDL2 and WebAssembly)
Run example:
cargo run --example breakout
Add roast2d
to Rust project:
cargo add roast2d
Roast2D supports multiple backends:
SDL2 is the default backend when you build for Linux / Mac / Windows.
Make sure the SDL2 library is installed on your machine before developing. This document can help to install SDL2.
WebAssembly backend is implement with web canvas interface, you must make sure the game can build with wasm32-unknown-unknown
target. Ensure you have wasm-pack installed, and use wasm-pack build
to build project.
To render the game, ensure you provide a <canvas>
element with the id #roast-2d-canvas
.
The source code is licensed under MIT.