Phoenix/include/state.hpp
2023-05-27 17:40:27 -04:00

21 lines
377 B
C++

#pragma once
#include "assets.hpp"
#include "collision.hpp"
#include "config.hpp"
#include "player.hpp"
#include <SDL.h>
struct GlobalState {
SDL_Window *window;
SDL_Renderer *renderer;
SDL_Rect camera;
PPlayer player;
PCollisionDatabase collisionDb;
std::vector<PCollisionRect> collisions;
PhoenixAssets assets;
int scale = 20;
};
extern GlobalState state;