forked from mibi88/Builder
46 lines
935 B
C
46 lines
935 B
C
typedef struct Player Player;
|
|
struct Player{
|
|
int x;
|
|
int y;
|
|
int falling;
|
|
int jumping;
|
|
int jumpheight;
|
|
int selx;
|
|
int sely;
|
|
int orient;
|
|
int timing;
|
|
int animation;
|
|
int inventoryitems[INVENTORY_SIZE];
|
|
int inventorynum[INVENTORY_SIZE];
|
|
int invselect;
|
|
int invmoving;
|
|
int overlayframe;
|
|
int overlaytimer;
|
|
int select_tx;
|
|
int select_ty;
|
|
int old_select_tx;
|
|
int old_select_ty;
|
|
int wasdestroyingbefore;
|
|
int destroytime;
|
|
};
|
|
|
|
typedef struct Crafting Crafting;
|
|
struct Crafting{
|
|
int selected;
|
|
int ispossible;
|
|
};
|
|
const int craftingsitems[CRAFTINGS*CRAFTSIZE] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0
|
|
};
|
|
const int craftingsnum[CRAFTINGS*CRAFTSIZE] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0
|
|
};
|
|
const int craftingitem[CRAFTINGS] = {
|
|
0,
|
|
0,
|
|
0
|
|
}; |