From 087fc4a16ceb667104b91ddae4258680193f47f9 Mon Sep 17 00:00:00 2001 From: chris bell Date: Mon, 16 Feb 2026 18:23:45 -0600 Subject: [PATCH] making sure the world is cleaned up after main loop --- src/main.odin | 4 ++-- src/world.odin | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.odin b/src/main.odin index acc8ec3..5b4dabf 100644 --- a/src/main.odin +++ b/src/main.odin @@ -13,11 +13,13 @@ main :: proc() { raylib.SetConfigFlags(config_flags) raylib.InitWindow(1920, 1080, "Game") + defer raylib.CloseWindow() raylib.SetTargetFPS(60) raylib.SetExitKey(nil) init_world() + defer deinit_world() player = { position = {300, 300}, @@ -50,8 +52,6 @@ main :: proc() { update(delta) } - - raylib.CloseWindow() } @(private = "file") diff --git a/src/world.odin b/src/world.odin index ee3f244..703f54a 100644 --- a/src/world.odin +++ b/src/world.odin @@ -14,7 +14,7 @@ interactables_tilemap_sheet: TilemapSpritesheet init_world :: proc() { - world_base_color = {0, 150, 255, 255} + // world_base_color = {74, 132, 74, 255} ground_tilemap_sheet = load_tilemap_sheet( "assets/tiles/master_tilemap.png", @@ -70,7 +70,7 @@ draw_world :: proc() { &interactables_tilemap_sheet, &interactables_layer_grid, &player.camera, - raylib.WHITE, + world_base_color, ) }