From: Randy McShandy Date: Sun, 5 May 2024 14:31:16 +0000 (-0500) Subject: Add central chamber generation X-Git-Url: http://git.mcshandy.xyz/gitweb.cgi?a=commitdiff_plain;h=eb42894de79609b88419056717973932961addab;p=barrow_crawler Add central chamber generation --- 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; + } } }