gsa 0.2.1

Game development library modelled after an imaginary console
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use glam::IVec2;
use gsa::{run, Gsa};

struct Game {}

fn init(gsa: &mut Gsa) -> Game {
    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();
}

run!(init, update);