engine-c: denser mid-air tracers + artillery/missile arcs
This commit is contained in:
parent
1ef6df4ce5
commit
b4d3388701
7 changed files with 187 additions and 76 deletions
|
|
@ -312,6 +312,9 @@ typedef struct Building {
|
|||
/* ----------------------------------------------------------------------- */
|
||||
typedef struct {
|
||||
float x, y, tx, ty;
|
||||
float ox, oy; /* origin for ballistic arc (shell/missile) */
|
||||
float loft; /* peak height above chord; 0 = linear */
|
||||
float prog; /* 0..1 along chord for lofted kinds */
|
||||
float speed;
|
||||
float damage;
|
||||
Faction faction;
|
||||
|
|
@ -560,6 +563,7 @@ int bld_research(Game *g, Faction f, int up);
|
|||
/* ----------------------------------------------------------------------- */
|
||||
void bullet_spawn(Game *g, float x, float y, int target_unit, int target_bld,
|
||||
float dmg, Faction f, int kind);
|
||||
void bullet_place_at_prog(Bullet *b, float prog);
|
||||
void bullet_update(Game *g, float dt);
|
||||
void particle_spawn(Game *g, float x, float y, int kind, uint8_t cr, uint8_t cg, uint8_t cb);
|
||||
void particle_burst(Game *g, float x, float y, int n, int kind, uint8_t cr, uint8_t cg, uint8_t cb);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue