Neatened up comments and got game using scene manager.

This commit is contained in:
2026-09-08 08:27:15 +02:00
parent 2ce0d52e69
commit 655219738d
2 changed files with 64 additions and 45 deletions
+5 -3
View File
@@ -17,9 +17,11 @@ main :: proc() {
defer mem.tracking_allocator_destroy(&track)
context.allocator = mem.tracking_allocator(&track)
}
// ------------------------------------------------------
// ------------------------------------------------------------------------------
// Game Start
// ------------------------------------------------------------------------------
// Game Loop
// ------------------------------------------------------------------------------
game := Game{}
game_init(&game)
@@ -29,11 +31,11 @@ main :: proc() {
game_render(&game)
}
// Game Stop
game_quit(&game)
// ------------------------------------------------------
// Check for any leaks!
// ------------------------------------------------------
when DEBUG {
if len(track.allocation_map) > 0 {
log.errorf("\nMEMORY LEAKS: %v allocation(s)", len(track.allocation_map))