diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-13 15:20:37 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-13 15:20:37 +0500 |
| commit | d5cc4f654fc50502c9e4f9ebbe310b9158d5b0a4 (patch) | |
| tree | 2b09459978721db5484c6e14dbbdb6f1ad9ccdeb /src/main.c | |
| parent | 0a87b324c3bec9d7304e183072e1b5e42c4dc144 (diff) | |
feat: level struct and basic functions for initialization (wip)
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,4 @@ +#include "level.h" #include "raylib.h" int main() { @@ -5,13 +6,20 @@ int main() { InitWindow(800, 600, "sillyeditor"); SetTargetFPS(60); + Level *level = SE_CreateLevel(30, 30); + while (!WindowShouldClose()) { BeginDrawing(); ClearBackground(RAYWHITE); DrawText("hi world!", GetScreenWidth() / 2 - 16 * 4, GetScreenHeight() / 2 - 16, 32, BLACK); + + SE_RenderLevel(level); + EndDrawing(); } + SE_FreeLevel(level); + return 0; -}
\ No newline at end of file +} |
