Small cleanup/comments.
This commit is contained in:
+11
-1
@@ -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
@@ -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
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user