first commit

This commit is contained in:
2026-07-27 14:36:37 +01:00
commit e94b26690f
10 changed files with 2434 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
package main
import game "../src"
import "base:runtime"
// ignored
main :: proc() {}
is_init: bool
init_hook :: proc() {
global_ctx := runtime.default_context_ptr()
game.init(global_ctx)
}
exit_hook :: proc() {
game.exit()
}
update_hook :: proc() -> bool {
return game.update()
}
@(export)
step :: proc(delta_time: f64) -> bool {
if !is_init {
init_hook()
is_init = true
}
if !update_hook() {
exit_hook()
return false
}
return true
}