Revision 227
implemented bullet movement and angle
ent.h | ||
---|---|---|
24 | 24 |
|
25 | 25 |
struct bullet; |
26 | 26 |
typedef struct bullet bullet_t; |
27 |
bullet_t* (bullet_ctor)(basic_sprite_t *b); |
|
27 |
bullet_t* (bullet_ctor)(basic_sprite_t *b, double x, double y, double vx, double vy);
|
|
28 | 28 |
void (bullet_dtor)(bullet_t *p); |
29 |
void (bullet_set_pos) (bullet_t *p, double x, double y); |
|
30 |
void (bullet_set_angle)(bullet_t *p, double angle ); |
|
31 | 29 |
double (bullet_get_x) (const bullet_t *p); |
32 | 30 |
double (bullet_get_y) (const bullet_t *p); |
33 | 31 |
int16_t (bullet_get_x_screen)(const bullet_t *p); |
Also available in: Unified diff