]> git.mcshandy.xyz Git - barrow_crawler/commitdiff
Add central chamber generation
authorRandy McShandy <randy@mcshandy.xyz>
Sun, 5 May 2024 14:31:16 +0000 (09:31 -0500)
committerRandy McShandy <randy@mcshandy.xyz>
Sun, 5 May 2024 14:31:16 +0000 (09:31 -0500)
src/structs.c
src/utils.c

index 4af58cb354fec09b9120450971b05f4515e83ed9..dcab0bdfc8c16436e0df246a9031bfbe8f276f8b 100644 (file)
@@ -76,5 +76,5 @@ const IVec2 screen_dims = {.x = 1200, .y = 800};
 const char* screen_title = "Barrow Crawler";
 const int target_fps = 60;
 
-const IVec2 img_export_scale = {.x = 2, .y = 4};
+const IVec2 img_export_scale = {.x = 2, .y = 2};
 
index c79193fc0b8901e0bea7b2e1a90793fbf006a306..82dee02af927e5a9ba0058fce4b79bc0bf70ca2a 100644 (file)
@@ -113,6 +113,11 @@ int initialize(int worker_count, RD_Opts active_opt)
                        else {
                                grid[x][y].c = 1.0f;
                        }
+
+                       if ((sqrtf(((x-center_x)*(x-center_x))+((y-center_y)*(y-center_y))) < radius/6))
+                       {
+                               grid[x][y].c = 1.0f;
+                       }
                }
        }