GameMap - ZenXChaos/MapleStorySDLCPP GitHub Wiki
GameMap
GameMap.h // GameMap.cpp
: Handles display of the map and map objects.
private members:
AnimatedSprite mapSprite;
std::map<int, GameMapObject> mapObjects;
public members:
void InitMap(std::string initMapFile, SDL_Rect pos, SDL_Renderer* gRenderer);
void DrawMap(SDL_Rect pos);
mapSprite
: A sprite for displaying the main BG of the map
mapObjects
: Map objects (Coming soon)
void InitMap
: Required, initialize map -- including loading image and positioning.
void DrawMap
: Draw the map to the screen