21 lines
211 B
C
21 lines
211 B
C
|
#ifndef BOX_H
|
||
|
#define BOX_H
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
int x;
|
||
|
int y;
|
||
|
|
||
|
int w;
|
||
|
int h;
|
||
|
|
||
|
int vx;
|
||
|
int vy;
|
||
|
|
||
|
int gravity;
|
||
|
} box_t;
|
||
|
|
||
|
int box_move(box_t * b);
|
||
|
int box_jump(box_t * b, int height); // hauteur du saut
|
||
|
|
||
|
#endif
|