supercasiobros/include/box.h

22 lines
277 B
C
Executable File

#ifndef BOX_H
#define BOX_H
typedef struct
{
int x :16;
int y :16;
unsigned w :8;
unsigned h :8;
int vx :8;
int vy :8;
int last_vy :8;
int gravity :2;
//int is_mario;
} box_t;
int box_move(box_t * b);
int box_jump(box_t * b, int height); // hauteur du saut
#endif