21 lines
351 B
C
21 lines
351 B
C
#pragma once
|
|
#include "type.h"
|
|
|
|
struct Bullet {
|
|
struct Vec2 pos;
|
|
int v;
|
|
int active;
|
|
};
|
|
|
|
struct Bullet_table {
|
|
int n;
|
|
struct Bullet *bullets;
|
|
};
|
|
|
|
void bullet_table_init(void);
|
|
void bullet_table_update(void);
|
|
void bullet_table_draw(int timer);
|
|
void bullet_destroy(struct Bullet *bullet);
|
|
void bullet_fire(int x, int y, int v);
|
|
int bullet_nb(void);
|