proper collision

This commit is contained in:
Hunter 2023-05-27 17:40:27 -04:00
parent 83e312894b
commit 553ab7c1df
10 changed files with 143 additions and 8 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include "assets.hpp"
#include "collision.hpp"
#include "config.hpp"
#include "player.hpp"
#include <SDL.h>
@ -8,7 +9,10 @@ struct GlobalState {
SDL_Window *window;
SDL_Renderer *renderer;
SDL_Rect camera;
PPlayer player;
PCollisionDatabase collisionDb;
std::vector<PCollisionRect> collisions;
PhoenixAssets assets;
int scale = 20;
};