Hopefully last commit
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
#include "../items/item.h"
|
||||
|
||||
extern int playerReach;
|
||||
#define playerTileX (player.rect.x / TILE_SIZE)
|
||||
#define playerTileY (player.rect.y / TILE_SIZE)
|
||||
#define playerTileX (mainPlayer.rect.x / TILE_SIZE)
|
||||
#define playerTileY (mainPlayer.rect.y / TILE_SIZE)
|
||||
extern int playerSpeed;
|
||||
|
||||
extern SDL_Texture *entityTexture;
|
||||
@@ -59,8 +59,12 @@ typedef struct Player{
|
||||
uint8_t healthIdle;
|
||||
SDL_Rect rect;
|
||||
MiniRect tileRect;
|
||||
uint32_t mouseButtons;
|
||||
MiniRect coreTileRect;
|
||||
} Player;
|
||||
|
||||
extern SDL_Rect PlayerRect;
|
||||
|
||||
void setActivePlayerSlot(Player *plr, ItemType activeSlotIndex);
|
||||
|
||||
void moveActivePlayerSlot(Player *plr, bool up, bool seek);
|
||||
@@ -71,4 +75,6 @@ void initPlayer(Player *plr);
|
||||
|
||||
void updatePlayer(Player *plr);
|
||||
|
||||
extern Player mainPlayer;
|
||||
|
||||
#endif //FACTORYGAME_PLAYER_H
|
||||
|
Reference in New Issue
Block a user