17 lines
273 B
Odin
17 lines
273 B
Odin
package main
|
|
|
|
import game ".."
|
|
import "core:os"
|
|
import "core:path/filepath"
|
|
|
|
main :: proc() {
|
|
exe_path := os.args[0]
|
|
exe_dir := filepath.dir(string(exe_path))
|
|
os.set_working_directory(exe_dir)
|
|
|
|
game.init()
|
|
for game.should_run() {
|
|
game.update()
|
|
}
|
|
game.shutdown()
|
|
}
|