diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -6,6 +6,8 @@ int main() { InitWindow(800, 600, "sillyeditor"); SetTargetFPS(60); + int gridSize = 32; + Level *level = SE_CreateLevel(30, 30); while (!WindowShouldClose()) { @@ -16,6 +18,15 @@ int main() { SE_RenderLevel(level); + // Drawing grid + for (int x = 0; x <= level->width; x++) { + DrawLine(x * gridSize, 0, x * gridSize, GetScreenHeight(), LIGHTGRAY); + } + + for (int y = 0; y <= level->height; y++) { + DrawLine(0, y * gridSize, GetScreenWidth(), y * gridSize, LIGHTGRAY); + } + EndDrawing(); } |
