aboutsummaryrefslogtreecommitdiff
path: root/sprite.c
diff options
context:
space:
mode:
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];
+}