Start working on hot-reload functionality

This commit is contained in:
Riyyi
2026-09-06 16:37:49 +02:00
parent d353a43090
commit aea791fe2b
6 changed files with 92 additions and 17 deletions
+20
View File
@@ -0,0 +1,20 @@
package game
import "core:time"
import "core:fmt"
@(export)
hello :: proc() {
fmt.println("hello from .dll!")
}
start := time.tick_now()
@(export)
should_close :: proc() -> bool {
elapsed := time.tick_since(start)
seconds := time.duration_seconds(elapsed)
if seconds > 4 do return true
return false
}