HEADER FILE: Headers.h #pragma once #include #include "SDL.h" #include "SDL_image.h" #include "SDL_ttf.h" #include "SDL_mixer.h" #include "GV.h" #include "UI.h" #include "Tile.h" #include "Item.h" #include "Figure.h" //Screen attributes #define SCREEN_WIDTH 1214 #define SCREEN_HEIGHT 640 #define SCREEN_BPP 32 //Game interface attributes #define MAP_WIDTH 2560 #define MAP_HEIGHT 1280 //Tiles, items, figures #define TILE_COUNT 3 #define FIGURE_COUNT 2 #define FIGURE_SPEC_COUNT 22 FIGURE FILE: Figure.h #pragma once #include "Definitions.h" class Figure { public: int x; //Figure index struct FIGURE_TYPE { //Where to crop the image from SDL_Rect crop; int x; int y; }; //The game figure FIGURE_TYPE figure_index[FIGURE_COUNT]; //The figure array int figure_array[MAP_HEIGHT / 64][MAP_WIDTH / 64]; //Functions Figure ( void ); bool draw_figures ( SDL_Surface* screen, SDL_Surface* figures, SDL_Rect camera, Figure::FIGURE_TYPE figure_spec[FIGURE_COUNT] ); };