2023-11-16 01:34:28 +01:00
|
|
|
let ona = @import("ona")
|
2023-05-24 01:22:29 +02:00
|
|
|
|
2023-11-16 01:34:28 +01:00
|
|
|
var timer = 0
|
2023-11-05 13:25:16 +01:00
|
|
|
|
2023-11-16 01:34:28 +01:00
|
|
|
ona.on_update(lambda (dt):
|
|
|
|
timer = timer + dt
|
2023-11-05 13:25:16 +01:00
|
|
|
|
2023-11-16 01:34:28 +01:00
|
|
|
if (timer > 1):
|
|
|
|
@print("test hello world")
|
2023-11-04 12:30:45 +01:00
|
|
|
|
2023-11-16 01:34:28 +01:00
|
|
|
timer = 0
|
|
|
|
end
|
|
|
|
end)
|
2023-11-04 12:30:45 +01:00
|
|
|
|
2023-08-23 00:49:23 +02:00
|
|
|
return {
|
|
|
|
.title = "Game",
|
2023-07-23 04:12:45 +02:00
|
|
|
.width = 1280,
|
|
|
|
.height = 800,
|
|
|
|
.tick_rate = 60,
|
2023-05-24 01:22:29 +02:00
|
|
|
}
|