Restructure/refactor of main.c

This commit is contained in:
2023-11-12 16:14:30 +01:00
parent df911c65b7
commit 8edb7b7ea9
13 changed files with 280 additions and 159 deletions

View File

@@ -3,18 +3,33 @@
#include <breeze.h>
#include "utils/building_types.h"
typedef struct TilePosition {
BzTile x;
BzTile y;
} TilePosition;
typedef struct TileSize {
BzTile w;
BzTile h;
BzTile sizeX;
BzTile sizeY;
} TileSize;
typedef struct Owner {
BuildingType playerID;
} Owner;
typedef Vector2 Position, Size;
typedef f32 Rotation;
typedef f32 Health;
typedef struct TextureRegion {
Texture2D texture;
Rectangle rec;
} TextureRegion;
#endif //PIXELDEFENSE_COMPONENTS_H