engine-c: denser mid-air tracers + artillery/missile arcs

This commit is contained in:
local-model/engine-L2-grok-4.5 2026-09-19 17:42:57 +02:00
parent 1ef6df4ce5
commit b4d3388701
No known key found for this signature in database
7 changed files with 187 additions and 76 deletions

View file

@ -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);