From deaa0f9121b4f3b9c23820b706277bb6512f76f3 Mon Sep 17 00:00:00 2001 From: Jason Hilder Date: Fri, 10 Jul 2026 08:37:14 +0200 Subject: [PATCH] Small cleanup/comments. --- src/asset_manager.odin | 12 +++++++++++- src/config.odin | 8 +++++++- src/game.odin | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/asset_manager.odin b/src/asset_manager.odin index 471d669..83c5687 100644 --- a/src/asset_manager.odin +++ b/src/asset_manager.odin @@ -1,17 +1,27 @@ +// ----------------------------------------------------------------------------- +// Asset Manager +// +// Responsible for loading, owning, and unloading all game assets. +// Assets are loaded once, shared throughout the game, and released on close +// ----------------------------------------------------------------------------- package game -import rl "vendor:raylib" +// import rl "vendor:raylib" Asset_Manager :: struct { // Empty for now. + //player: rl.Texture2D, } asset_manager_init :: proc() -> Asset_Manager { assets := Asset_Manager{} + // assets.player = rl.LoadTexture("assets/sprites/player.png") + return assets } asset_manager_destroy :: proc(assets: ^Asset_Manager) { // unload textures here later. + //rl.UnloadTexture(assets.player) } \ No newline at end of file diff --git a/src/config.odin b/src/config.odin index a0fef0d..2327b4b 100644 --- a/src/config.odin +++ b/src/config.odin @@ -1,6 +1,12 @@ -// Static values that configure the game, nothing dynamic here +// ----------------------------------------------------------------------------- +// Configuration +// +// Stores compile-time configuration values used to initialize the game. +// Static values that configure the game, Runtime settings + game state belong elsewhere. +// ----------------------------------------------------------------------------- package game + WINDOW_WIDTH :: 1280 WINDOW_HEIGHT :: 720 WINDOW_TITLE :: "Graveyard" diff --git a/src/game.odin b/src/game.odin index 263ed37..e4e9305 100644 --- a/src/game.odin +++ b/src/game.odin @@ -28,7 +28,7 @@ game_should_run :: proc(game: ^Game) -> bool { game_update :: proc(game: ^Game) { if rl.IsMouseButtonPressed(.LEFT) { - rl.TraceLog(.INFO, "Mouse clicked!") + log_info("Mouse Clicked") } }