mario-kart-casio/src/particles.h

31 lines
458 B
C
Raw Permalink Normal View History

2022-07-02 21:20:17 +02:00
#ifndef _PARTICLES_H_
#define _PARTICLES_H_
2022-07-21 17:14:02 +02:00
#include <stdbool.h>
2022-07-17 00:36:08 +02:00
#include "./platform.h"
2022-07-02 21:20:17 +02:00
typedef struct {
short type;
short age;
short x;
short y;
char xVel;
char yVel;
} ParticleState;
typedef struct {
short maxAge;
short animLength;
char animDelay;
2022-07-17 00:36:08 +02:00
const struct image** animFrames;
2022-07-02 21:20:17 +02:00
} ParticleType;
void initParticles();
2022-07-21 17:14:02 +02:00
bool tickParticles();
2022-07-02 21:20:17 +02:00
void addParticle(int type, int x, int y, int xVel, int yVel);
#endif // _PARTICLES_H_