feat: Basic level editing

This commit is contained in:
2025-10-06 14:26:00 +01:00
parent 3e527f473b
commit 3a84947750
18 changed files with 242 additions and 34 deletions

View File

@@ -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;
};