summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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,