Initial setup of Monster structures
This commit is contained in:
+5
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user