feat: Basic level editing
This commit is contained in:
@@ -13,6 +13,25 @@ struct G_Camera {
|
||||
Mat4x4FInv proj;
|
||||
};
|
||||
|
||||
#define TILE_SIZE 1.0
|
||||
|
||||
typedef enum G_EDITOR_MODE G_EDITOR_MODE;
|
||||
enum G_EDITOR_MODE {
|
||||
G_EDITOR_MODE_TILE,
|
||||
G_EDITOR_MODE_PROP,
|
||||
G_EDITOR_MODE_HITBOX,
|
||||
G_EDITOR_MODE_POI,
|
||||
};
|
||||
|
||||
typedef struct G_Editor G_Editor;
|
||||
struct G_Editor {
|
||||
bool enabled;
|
||||
U32 currentLevel;
|
||||
S32 currentAsset;
|
||||
G_EDITOR_MODE mode;
|
||||
V2f cursor;
|
||||
};
|
||||
|
||||
typedef struct G_State G_State;
|
||||
struct G_State {
|
||||
M_Arena *arena;
|
||||
@@ -20,6 +39,7 @@ struct G_State {
|
||||
D_Context draw;
|
||||
G_Camera camera;
|
||||
|
||||
G_Editor editor;
|
||||
World *world;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user