Small cleanup/comments.

This commit is contained in:
2026-07-10 08:37:14 +02:00
parent 445b451fcd
commit deaa0f9121
3 changed files with 19 additions and 3 deletions
+11 -1
View File
@@ -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)
}
+7 -1
View File
@@ -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"
+1 -1
View File
@@ -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")
}
}