summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-01-18 02:53:16 +0500
committerilotterytea <iltsu@alright.party>2025-01-18 02:53:16 +0500
commitf0284723a2e53b004777a71ad46cc4b75ed566ca (patch)
tree33e0a4bcafc3b7c2dd9333dea31d99568527ecc0 /src
parent2933e4c995da93cd0084b1b4eb2f0ce232b1f406 (diff)
feat: change the grid size
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
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,