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

30 lines
408 B

#ifndef BOX_H
#define BOX_H
#include <stdbool.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 isMario;
} box_t;
void boxMove(box_t * b);
bool boxContact(box_t const * b1, box_t const * b2);
void boxJump(box_t * b, int height, bool floor_needed);
#endif