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
|
2020-02-16 20:43:35 +01:00
|
|
|
//#define M_LITTLE 1
|
|
|
|
//#define M_SWIM 2
|
|
|
|
|
|
|
|
#define MARIO_IMMUNITY_TIME 60
|
|
|
|
// 60/20 seconds = 3 seconds
|
2019-11-21 19:30:54 +01:00
|
|
|
|
|
|
|
#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;
|
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
void marioDraw();
|
2020-02-17 14:49:03 +01:00
|
|
|
void marioResetJump(); // resets coyote time & jump buffering (used by teleporters)
|
2020-02-16 20:43:35 +01:00
|
|
|
void marioMove();
|
|
|
|
void marioBigger();
|
|
|
|
void marioSmaller();
|
2019-12-05 19:24:16 +01:00
|
|
|
|
2019-11-21 19:30:54 +01:00
|
|
|
extern int global_quit;
|
|
|
|
extern int numero_frame;
|
2020-02-16 20:43:35 +01:00
|
|
|
extern int mario_xMax;
|
2019-11-25 19:12:25 +01:00
|
|
|
extern int mario_dead;
|
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
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
extern int mario_starMode;
|
2019-12-11 16:31:18 +01:00
|
|
|
|
2020-02-16 13:32:16 +01:00
|
|
|
#endif
|