diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-26 20:06:38 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-26 20:13:37 +0500 |
| commit | d6b054ba7a53787bc9c143007176d26bc491c72b (patch) | |
| tree | e8a76d65b8f35473970f9606cf1f7aeb7ad1d2a6 /src/main.c | |
| parent | f647ebf57d92fd638a192b7c06edc3356871dbf1 (diff) | |
fix: empty data + raygui implementation wasn't defined
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -26,6 +26,15 @@ int main() { XdData* data = NULL; Editor editor = {data, {0, 0, 0, NULL, {0, 0, 0, 0}, {0, 0}, NULL, {}}}; + // creating a new xd data + data = malloc(sizeof(XdData)); + editor.data = data; + data->name = "xd"; + data->levels[0] = malloc(sizeof(XdLevel)); + data->levels[0]->floors[0] = malloc(sizeof(XdFloor)); + data->levels[0]->floors[0]->width = 30; + data->levels[0]->floors[0]->height = 30; + Camera2D camera = {0}; camera.target = (Vector2){0.0f, 0.0f}; camera.offset = (Vector2){0.0f, 0.0f}; |
