aboutsummaryrefslogtreecommitdiff
path: root/sprite.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-06 09:02:04 +1000
committerquou <quou@disroot.org>2023-05-06 09:02:04 +1000
commit2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch)
treee608ebd0bea71570be0a3619f9848f975669e5ef /sprite.c
parentfb104368dd33b66e0575dcc0327cbae7046a4e1e (diff)
Menus, game over, dying, etc.
Diffstat (limited to 'sprite.c')
-rw-r--r--sprite.c14
1 files changed, 14 insertions, 0 deletions
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];
+}