From eb42894de79609b88419056717973932961addab Mon Sep 17 00:00:00 2001 From: Randy McShandy Date: Sun, 5 May 2024 09:31:16 -0500 Subject: [PATCH] Add central chamber generation --- src/structs.c | 2 +- src/utils.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/structs.c b/src/structs.c index 4af58cb..dcab0bd 100644 --- a/src/structs.c +++ b/src/structs.c @@ -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}; diff --git a/src/utils.c b/src/utils.c index c79193f..82dee02 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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; + } } } -- 2.49.0