#ifndef INCLUDE_BULLETS #define INCLUDE_BULLETS #include #include "players.h" #include "objects.h" #include "map.h" #include "guns.h" #define POINTS_PER_HIT 10 typedef struct t_bullet { u32 player_id; bool active; vec3f position; float endx; float endy; float alive_time; int damage; } bullet; bullet bullets[500] = {0}; int max_bullets = 500; void clear_bullets(); void shoot(platform_window* window, u32 id, float dirx, float diry); void draw_bullets(platform_window* window); object_type check_if_bullet_collided_with_object(bullet* b, platform_window* window); #endif