Initial
This commit is contained in:
commit
5a8fb74da2
192 changed files with 357919 additions and 0 deletions
17
src/desktop/main.odin
Normal file
17
src/desktop/main.odin
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue