rotagon/obs.h

36 lines
518 B
C
Raw Normal View History

2015-01-01 04:32:07 +00:00
/*
** obs.h - <+DESC+>
**
** 2014 - Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>
*/
#ifndef OBS_H
#define OBS_H
void
init_obs(struct s_game *g);
void
add_obstacle(struct s_game *g, struct s_obstacle o);
struct s_obstacle
create_obstacle(int thick, int face, int speed);
void
delete_obstacle(struct s_game *g, int obs);
void
2015-01-01 05:19:10 +00:00
draw_obstacles(struct s_game *g);
2015-01-01 04:32:07 +00:00
void
update_obstacles(struct s_game *g);
void
add_random_obstacle(struct s_game *g);
2015-01-01 04:57:59 +00:00
int
check_collisions(struct s_game *g);
2015-01-01 04:32:07 +00:00
#endif /* ndef OBS_H */