making sure the world is cleaned up after main loop
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user