Restructure/refactor of main.c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user