diff --git a/examples/hello_world/gfx.gif b/examples/hello_world/gfx.gif index 6c29528..3c82e8a 100644 Binary files a/examples/hello_world/gfx.gif and b/examples/hello_world/gfx.gif differ diff --git a/examples/hello_world/main.rs b/examples/hello_world/main.rs index 7f72bdf..91c83e1 100644 --- a/examples/hello_world/main.rs +++ b/examples/hello_world/main.rs @@ -1,16 +1,16 @@ +use glam::IVec2; use gsa::{run, Gsa}; struct Game {} fn init(gsa: &mut Gsa) -> Game { - //game initialisation code gsa.sprites[0].tile = 0; + gsa.write_string(3, IVec2 { x: 10, y: 10 }, "Hello World, nyaa~"); Game {} } fn update(game: &mut Game, gsa: &mut Gsa) { gsa.sprites[0].pos += gsa.input_dir(); - //once per frame code } run!(init, update);