Refactored all the game classes into derived classes.
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#include "Map.h"
|
||||
#include "DEFINES.h"
|
||||
|
||||
INCLUDE_CLASS_DATA
|
||||
|
||||
//192x192
|
||||
const vi2d WINDOW_SIZE={24*15,24*10};
|
||||
std::map<AnimationState,Animate2D::FrameSequence>ANIMATION_DATA;
|
||||
@@ -32,6 +34,8 @@ bool Crawler::OnUserCreate(){
|
||||
InitializeLevel("assets/maps/Level2.tmx",LEVEL2);
|
||||
InitializeLevel("assets/Campaigns/1_1_test.tmx",CAMPAIGN_1_1);
|
||||
|
||||
ClassData::InitializeClassData();
|
||||
|
||||
//Initialize Camera.
|
||||
camera=Camera2D{WINDOW_SIZE};
|
||||
camera.SetMode(olc::utils::Camera2D::Mode::LazyFollow);
|
||||
|
||||
Reference in New Issue
Block a user