aboutsummaryrefslogtreecommitdiff
path: root/sprite.h
blob: a520b99a580e6a6104eb3f69a05526bcdd905b24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef sprite_h
#define sprite_h

#include "asset.h"
#include "components.h"
#include "rect.h"

typedef enum {
	sprite_player_bullet_left = 0,
	sprite_player_bullet_right,
	sprite_player_bullet_up,
	sprite_player_bullet_down
} Sprite_ID;

typedef struct {
	Asset_ID bitmap;
	Rectangle rect;
} Sprite;

void init_csprite(CSprite* sprite, Sprite_ID id);

#endif