2019-11-21 19:30:54 +01:00
|
|
|
#ifndef BOX_H
|
|
|
|
#define BOX_H
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
|
|
|
|
int w;
|
|
|
|
int h;
|
|
|
|
|
|
|
|
int vx;
|
|
|
|
int vy;
|
|
|
|
|
|
|
|
int gravity;
|
2019-11-30 13:57:18 +01:00
|
|
|
//int is_mario;
|
2019-11-21 19:30:54 +01:00
|
|
|
} box_t;
|
|
|
|
|
|
|
|
int box_move(box_t * b);
|
|
|
|
int box_jump(box_t * b, int height); // hauteur du saut
|
|
|
|
|
|
|
|
#endif
|