diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-18 02:53:16 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-18 02:53:16 +0500 |
| commit | f0284723a2e53b004777a71ad46cc4b75ed566ca (patch) | |
| tree | 33e0a4bcafc3b7c2dd9333dea31d99568527ecc0 /src/main.c | |
| parent | 2933e4c995da93cd0084b1b4eb2f0ce232b1f406 (diff) | |
feat: change the grid size
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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, |
