Le nouveau Super Mario Bros pour la gamme des fx9860g https://www.planet-casio.com/Fr/forums/topic15994-1-[addin]-SuperCasioBros-v0.1.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
supercasiobros/include/box.h

27 lines
375 B

// v0.3
#ifndef BOX_H
#define BOX_H
// Box type
// Used to simulate gravity and collides
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 :8;
//int is_mario;
} box_t;
void box_move(box_t * b);
int BoxContact(box_t const * b1, box_t const * b2);
void box_jump(box_t * b, int height);
#endif