30DECLARE_EXTERN_TASK(play_anim_once, {
Pool *pool;
float x;
float y;
float scaleX;
float scaleY;
int sprite_id;
float alpha; });
44#define RUN_SPELLCARD_W(ctx, pool, boss, spell, var, spell_name, life) \
45 obj_SetMaxLife(pool, boss, life); \
46 obj_SetLife(pool, boss, life); \
47 INVOKE_SUBTASK(start_spellcard_sequence, pool, boss, spell_name, 120); \
49 CoTask* MACRO_CONCAT(task_, var) = spell; \
50 BoxedTask MACRO_CONCAT(box_, var) = cotask_box(MACRO_CONCAT(task_, var)); \
52 while(!obj_IsDead(pool, boss)) { \
56 HUD_clear_spellcard(); \
57 CANCEL_TASK(MACRO_CONCAT(box_, var)); \
58 Bullet_clear_bullets(ctx); \
59 moonlight_bg_set_mode(false);
60#define RUN_SPELLCARD(ctx, boss, spell, spell_name, life) RUN_SPELLCARD_W(ctx, (ctx)->pool, boss, spell, MACRO_ADDLINENUM(boss), spell_name, life)
62#define RUN_NONSPELL_W(ctx, pool, boss, nonspell, var, life) \
63 moonlight_bg_set_mode(false); \
64 obj_SetMaxLife(pool, boss, life); \
65 obj_SetLife(pool, boss, life); \
66 obj_AddFlag(pool, boss, FLAG_INVINCIBLE); \
68 obj_RemoveFlag(pool, boss, FLAG_INVINCIBLE); \
69 CoTask* MACRO_CONCAT(task_, var) = nonspell; \
70 BoxedTask MACRO_CONCAT(box_, var) = cotask_box(MACRO_CONCAT(task_, var)); \
71 while(!obj_IsDead(pool, boss)) { \
74 CANCEL_TASK(MACRO_CONCAT(box_, var)); \
75 Bullet_clear_bullets(ctx);
76#define RUN_NONSPELL(ctx, boss, nonspell, life) RUN_NONSPELL_W(ctx, (ctx)->pool, boss, nonspell, MACRO_ADDLINENUM(boss), life)
79 float accel;
int accel_delay; });
Chargement et références des assets (textures, sprites, audio, polices).
Fonctions qui permettent de tirer des bullets de différentes manières.
uint32_t Entity
Une entité est un indice.
Definition ecs.h:20
Fonctions permettant de gêrer l'état du programme.
Système d'affichage du HUD (Heads-Up Display).
Arrière-plan et effets pour le stage "moonlight".
Gestion du joueur : structures Player, Weapon.
La pool est la structure qui contient l'Entity Component System Elle gêre les différentes composantes...
Definition pool.h:42
#define DECLARE_EXTERN_TASK(name,...)
Definition tasks.h:143