hecrj /
coffee
An opinionated 2D game engine for Rust
86/100 healthLoading repository data…
pufferfish-rs / repository
An opinionated 2D game framework for Rust
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
An opinionated 2D game framework for Rust
:warning: DISCLAIMER: pufferfish is in very early stages of development. APIs can and will change, many basic features are missing, and parts of this README may not reflect the current state of the crate. I would recommend against using this in your projects just yet, but for those brave enough, now is the time for suggestions and feature requests!
fuguTo add pufferfish to your project, add the following to the dependencies section of your Cargo.toml:
pufferfish = "0.1"
See the examples/ directory in the source to get a feel of how pufferfish's API works.
A basic pufferfish program looks something like this:
use pufferfish::graphics::{Color, Graphics};
use pufferfish::App;
struct State {
// Your game state...
}
fn main() {
App::new()
.with_title("Hello World")
.add_state(State::new()) // Add your state
.add_init_callback(init) // Add your callbacks
.add_frame_callback(update)
.add_frame_callback(draw)
.run();
}
fn init(state: &mut State) {
// Initialization code here...
}
fn update(state: &mut State) {
// Update code here...
}
// Request arbitrary state through the callback's type signature
fn draw(state: &State, g: &Graphics) {
g.clear(Color::BLACK);
g.begin();
// Draw code here...
g.end();
}
Selected from shared topics, language and repository description—not editorial ratings.
hecrj /
An opinionated 2D game engine for Rust
86/100 healthjohanhelsing /
An opinionated 2D sparse grid made for use with Bevy. For storing and querying entities
60/100 healthjcerise /
An opinionated 2D game engine, written in Rust
RubyOnWorld /
An opinionated 2D game engine for Rust focused on simplicity, explicitness, and type-safety.
41/100 health