diff options
author | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
commit | 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch) | |
tree | e608ebd0bea71570be0a3619f9848f975669e5ef /sprite.c | |
parent | fb104368dd33b66e0575dcc0327cbae7046a4e1e (diff) |
Menus, game over, dying, etc.
Diffstat (limited to 'sprite.c')
-rw-r--r-- | sprite.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -60,6 +60,16 @@ static const Sprite sprites[] = { { asset_id_bullet, { 18, 0, 5, 5 } + }, + /* sprite_author */ + { + asset_id_usr, + { 0, 70, 70, 10 } + }, + /* sprite_free */ + { + asset_id_usr, + { 0, 80, 171, 10 } } }; @@ -70,3 +80,7 @@ void init_csprite(CSprite* sprite, Sprite_ID id) { sprite->id = s->bitmap; sprite->rect = s->rect; } + +const Sprite* get_sprite(Sprite_ID id) { + return &sprites[id]; +} |