blob: 8375d46ec513ce97626d6f278ce54f7318fbfdb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef PLATFORM_H
#define PLATFORM_H
#include "collision.h"
typedef struct {
int id, type; //0 = moving platform
double x, y;
int xstart, ystart;
int xend, yend;
int state;
double spd;
int timer;
int secret, visible;
Mask mask;
} Platform;
void createPlatform(int type, int xstart, int ystart, int xend, int yend, int spd, int secret);
void platformStep(Platform* p);
void platformDraw(Platform* p);
void platformDestroy(int id);
#endif
|