From 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 09:02:04 +1000 Subject: Menus, game over, dying, etc. --- sprite.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sprite.c') diff --git a/sprite.c b/sprite.c index c14f717..ca72f44 100644 --- a/sprite.c +++ b/sprite.c @@ -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]; +} -- cgit v1.2.3-54-g00ecf