-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathitems.h
More file actions
52 lines (39 loc) · 1 KB
/
Copy pathitems.h
File metadata and controls
52 lines (39 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef ITEMS_H
#define ITEMS_H
#define ITEM_NONE 0
#define ITEM_TREE1 BLOCK_TREE //6
#define ITEM_ROCK BLOCK_ROCK //0x10
#define ITEM_CHARBON BLOCK_CHARBON
#define ITEM_FER BLOCK_FER
#define ITEM_CUIVRE BLOCK_CUIVRE
#define ITEM_OR BLOCK_OR
#define ITEM_REDSTONE BLOCK_REDSTONE //0x17
#define ITEM_DIAMANT BLOCK_DIAMANT
#define ITEM_JADE BLOCK_JADE
#define ITEM_PIOCHE_BOIS 0x7f
typedef struct Titem {
int worldX;
int worldY;
uint8_t type;
int max_frames;
int nb_anim_frames;
bool bFalling;
bool bJumping;
bool bOnGround;
bool bMoving;
bool bIsActive;
int bIsAlive; //de 0 a 127 : zombi, apres 127 vivant
int iSpawning;
float pX;
float pY;
float newX;
float newY;
float speedX;
float speedY;
int current_framerate;
int anim_frame;
} Titem;
//Nombre max d'items dans le monde
#define MAX_ITEMS 128
Titem ITEMS[MAX_ITEMS];
#endif