diff options
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]; +} |