moved examples

This commit is contained in:
dani 2023-07-27 04:07:34 +00:00
parent 11dd73c45a
commit 52dfaea7ed
4 changed files with 16 additions and 0 deletions

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,16 @@
use gsa::{run, Gsa};
struct Game {}
fn init(gsa: &mut Gsa) -> Game {
//game initialisation code
gsa.sprites[0].tile = 0;
Game {}
}
fn update(game: &mut Game, gsa: &mut Gsa) {
gsa.sprites[0].pos += gsa.input_dir();
//once per frame code
}
run!(init, update);