wow, I created ground and fire

This commit is contained in:
elwld 2022-07-10 01:12:20 +05:00
parent c14d6e6c59
commit 2288fb8d15
14 changed files with 185 additions and 48 deletions

View file

@ -2,24 +2,27 @@
#define WINDOW
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <string>
#include <iostream>
#include "../game/GameObject.h"
using namespace std;
class Window
{
public:
Window(int width, int height, int windowFlags);
Window(int width, int height, int windowFps, int windowFlags);
void clear();
void draw();
void draw(GameObject &draw);
void update();
void quit();
private:
SDL_Window *window;
SDL_Surface *spritesheet;
SDL_Surface *surface;
SDL_Renderer *renderer;
SDL_Texture* spritesheet;
int windowDelay;
};
#endif //WINDOW