2019-11-21 19:30:54 +01:00
|
|
|
#ifndef MARIO_H
|
|
|
|
#define MARIO_H
|
|
|
|
|
|
|
|
#define M_SMALL 0
|
|
|
|
#define M_BIG 1
|
|
|
|
|
|
|
|
#define M_LEFT1 0
|
|
|
|
#define M_LEFT2 1
|
|
|
|
#define M_RIGHT1 2
|
|
|
|
#define M_RIGHT2 3
|
|
|
|
|
|
|
|
#define M_WALK 0
|
|
|
|
#define M_LITTLE 1
|
|
|
|
#define M_SWIM 2
|
|
|
|
|
|
|
|
#include "box.h"
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2019-12-08 16:34:32 +01:00
|
|
|
box_t p;
|
2019-11-21 19:30:54 +01:00
|
|
|
int size; // small, big
|
|
|
|
int type1; // left1 left2, right1, right2,
|
|
|
|
int type2; // jump, down...
|
|
|
|
int running;
|
|
|
|
} pnj;
|
|
|
|
extern pnj mario;
|
|
|
|
extern int coins;
|
|
|
|
|
|
|
|
void mario_draw();
|
|
|
|
|
|
|
|
//void mario_physics();
|
|
|
|
|
|
|
|
void mario_jump();
|
|
|
|
|
|
|
|
void mario_move();
|
|
|
|
|
2019-12-05 19:24:16 +01:00
|
|
|
void mario_bigger();
|
|
|
|
|
|
|
|
void mario_smaller();
|
|
|
|
|
2019-11-21 19:30:54 +01:00
|
|
|
extern int global_quit;
|
|
|
|
extern int numero_frame;
|
2019-11-25 19:12:25 +01:00
|
|
|
extern int mario_x_max;
|
|
|
|
extern int mario_dead;
|
2019-11-30 13:57:18 +01:00
|
|
|
extern int id_frame;
|
2019-12-05 19:24:16 +01:00
|
|
|
extern int mario_immunity;
|
|
|
|
extern int mario_has_bullets;
|
|
|
|
extern int last_vx_sign;
|
2019-12-11 16:31:18 +01:00
|
|
|
|
|
|
|
extern int mario_star_mode;
|
|
|
|
|
2019-11-21 19:30:54 +01:00
|
|
|
#endif
|