18 lines
324 B
C++
18 lines
324 B
C++
#pragma once
|
|
#include <SDL.h>
|
|
#include <string>
|
|
|
|
enum PPlayerFacingDirection { Up, Down, Left, Right };
|
|
|
|
struct PPlayer {
|
|
std::string name;
|
|
int x;
|
|
int y;
|
|
int health = 100;
|
|
int maxHealth = 100;
|
|
PPlayerFacingDirection facing = Up;
|
|
};
|
|
|
|
void PRenderPlayer(PPlayer *player);
|
|
SDL_Rect PGetPlayerRect(PPlayer *player);
|