2021-07-04 13:57:42 +00:00
|
|
|
// Adds [count] new spark sprites with the given [distance] in random
|
|
|
|
// directions away from ([center_x], [center_y]).
|
|
|
|
void pascal sparks_add_random(
|
|
|
|
Subpixel center_x, Subpixel center_y, subpixel_t distance, int count
|
|
|
|
);
|
|
|
|
|
|
|
|
// Adds [count] new spark sprites along a circle with the given [distance] away
|
|
|
|
// from ([center_x], [center_y]). Obviously ignores the random angle set in
|
|
|
|
// sparks_init().
|
2022-04-23 22:38:31 +00:00
|
|
|
void pascal near sparks_add_circle(
|
2021-07-04 13:57:42 +00:00
|
|
|
Subpixel center_x, Subpixel center_y, subpixel_t distance, int count
|
|
|
|
);
|
|
|
|
|
|
|
|
// Initializes all sparks with a random angle.
|
|
|
|
void near sparks_init(void);
|
|
|
|
|
|
|
|
void near sparks_update(void);
|
|
|
|
void near sparks_render(void);
|
|
|
|
void near sparks_invalidate(void);
|