From f0284723a2e53b004777a71ad46cc4b75ed566ca Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 18 Jan 2025 02:53:16 +0500 Subject: feat: change the grid size --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index 9a66308..a64fb0d 100644 --- a/src/main.c +++ b/src/main.c @@ -20,6 +20,11 @@ int main() { level->sides[0] = side; while (!WindowShouldClose()) { + // Change the grid size + if (GetMouseWheelMove() != 0.0) { + gridSize += (int)(GetMouseWheelMove() * 4.0); + } + BeginDrawing(); ClearBackground(RAYWHITE); DrawText("hi world!", GetScreenWidth() / 2 - 16 * 4, -- cgit v1.2.3