| Crates.io | ira |
| lib.rs | ira |
| version | 0.3.0 |
| created_at | 2024-06-03 21:11:17.331513+00 |
| updated_at | 2024-06-24 22:22:42.949075+00 |
| description | A general-purpose, code-first game engine. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1260512 |
| size | 117,892 |
A general-purpose, code-first game engine.
wgpu for graphicsira_drum
rapierstruct App {
car: InstanceRef,
}
impl ira::App for App {
fn on_init(_window: &mut Window) -> Drum {
Drum::from_path("car.drum").unwrap()
}
fn on_ready(ctx: &mut Context) -> Self {
Self {
car: ctx.add_instance(0, Instance::builder().up(Vec3::Z))
}
}
fn on_update(&mut self, ctx: &mut Context, delta: Duration) {
self.car.update(ctx, |i, p| i.rotate_y(p, delta.as_secs_f32() * PI * 0.25));
}
}
fn main() -> Result<(), EventLoopError> {
Game::<App>::default().run()
}
More examples can be found in the examples directory.
The ira tool can be used to pack various game assets (glTF, etc.) into a single Drum.
See the ira_cli documentation for more information.

Licensed under the MIT license.