Initial setup of Monster structures

This commit is contained in:
2023-06-11 20:03:30 -05:00
parent 8547054a60
commit cbbee7aaa4
10 changed files with 144 additions and 6 deletions
+5 -3
View File
@@ -4,12 +4,12 @@
#define OLC_PGEX_TRANSFORMEDVIEW
#include "olcPGEX_TransformedView.h"
#include "olcUTIL_Animate2D.h"
using namespace olc;
using namespace olc::utils;
#include "Monster.h"
const vi2d WINDOW_SIZE={24*8,24*8};
extern std::map<MonsterName,MonsterData>MONSTER_DATA;
enum AnimationState{
WALK_S,WALK_E,WALK_N,WALK_W,
IDLE_S,IDLE_E,IDLE_N,IDLE_W
@@ -120,6 +120,8 @@ public:
player.pos={4*24,4*24};
player.UpdateAnimation(IDLE_S);
std::cout<<MONSTER_DATA[SLIME_BLUE].GetHealth()<<std::endl;
return true;
}