ona/debug/app.ona

21 lines
243 B
Plaintext
Raw Normal View History

2023-11-20 22:39:42 +01:00
let events = @import("events")
2023-05-24 01:22:29 +02:00
var timer = 0
2023-11-05 13:25:16 +01:00
2023-11-20 22:39:42 +01:00
events.on_update(lambda (dt):
timer = timer + dt
2023-11-05 13:25:16 +01:00
if (timer > 1):
2023-11-20 22:39:42 +01:00
@print("test")
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",
2023-11-20 22:39:42 +01:00
.res_width = 1280,
.res_height = 800,
.tick_rate = 60,
2023-05-24 01:22:29 +02:00
}