proper collision
This commit is contained in:
parent
83e312894b
commit
553ab7c1df
10 changed files with 143 additions and 8 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue