ona/debug/app.ona

21 lines
238 B
Plaintext
Raw Normal View History

let ona = @import("ona")
2023-05-24 01:22:29 +02:00
var timer = 0
2023-11-05 13:25:16 +01:00
ona.on_update(lambda (dt):
timer = timer + dt
2023-11-05 13:25:16 +01:00
if (timer > 1):
@print("test hello world")
2023-11-04 12:30:45 +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",
.width = 1280,
.height = 800,
.tick_rate = 60,
2023-05-24 01:22:29 +02:00
}