darthdeus / comfy

Comfy is a fun 2D game engine built in Rust. It's designed to be opinionated, productive, and easy to use.

Home Page:https://comfyengine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuration method?

musjj opened this issue · comments

commented

There's this example:

simple_game!("Portrait mode", GameState, config, setup, update);
fn config(config: GameConfig) -> GameConfig {
GameConfig {
resolution: ResolutionConfig::Physical(600, 600 * 16 / 9),
min_resolution: ResolutionConfig::Physical(100, 100 * 16 / 9),
..config
}
}

But it doesn't seem to compile. Is it not implemented yet?

commented

Ah, the version on cargo is older than the one on master.