]> git.mcshandy.xyz Git - barrow_crawler/commitdiff
Expand playtime data so map sizing is saved through save/load process. Probably a...
authorRandy McShandy <randy@mcshandy.xyz>
Mon, 11 Aug 2025 02:02:04 +0000 (21:02 -0500)
committerRandy McShandy <randy@mcshandy.xyz>
Mon, 11 Aug 2025 02:02:04 +0000 (21:02 -0500)
bin/posix_BC
src/menufuncs.c
src/render_raylib.c
src/structs.h

index 1b7b423e120b4b966c135fde4513107182d5d228..c98b4237348bf9de6383f3269db3215f6ddf8573 100755 (executable)
Binary files a/bin/posix_BC and b/bin/posix_BC differ
index 45885d95f120d0d4e065f891b22004ee4f86bcc6..e74a05cbd637859b3c9ae5507e634eb1c86b241a 100644 (file)
@@ -21,6 +21,7 @@ bool internal_new_game()
   initialize_generation_info((IVec2){.x = barrow_size * density, .y = barrow_size * density}, 8);
 
   playtime.room_count = generation_info.room_count;
+  playtime.img_export_scale = generation_info.img_export_scale;
 
   pthread_create(&generation_info.generator_thread, NULL, generate_rd, NULL);
   pthread_detach(generation_info.generator_thread);
index 8a2e8425b072b18a479fbd6ad986a346cd164533..fac7a55506508f2a0a462d81febd46d316be7a9c 100644 (file)
@@ -223,8 +223,8 @@ void drawing_game_mode()
        DrawTextureEx(hand_01_texture, hand_position, hand_rotation, hand_scale, orb_color);
 
        Rectangle minimap_dest = {
-    .width = 64.0f*generation_info.img_export_scale.x,
-    .height = 64.0f*generation_info.img_export_scale.y,
+    .width = 64.0f* playtime.img_export_scale.x,
+    .height = 64.0f*playtime.img_export_scale.y,
     .x = 0.0f, .y = 0.0f
   };
 
index b20fc09cc313eb5dcd657d02ea605d0de6d7ebf5..29999f87f98ca22839355d6bdbe3b1f9b43f5aa4 100644 (file)
@@ -83,6 +83,7 @@ typedef struct
   Vector3 room_positions[16];
 
   Camera3D cam;
+  IVec2 img_export_scale;
 
   Vector3 player_velocity;
   Vector3 player_rotation;