ona/debug/app.ona

29 lines
355 B
Plaintext
Raw Normal View History

2023-05-24 01:22:29 +02:00
# Test comment.
pos = @vec3(10, 20, 0.3)
2023-08-20 03:35:53 +02:00
coord = pos.xz
2023-08-13 03:03:43 +02:00
2023-08-12 13:57:50 +02:00
options = {
.title = "Afterglow",
.width = 1280,
.height = 800,
.tick_rate = 60,
["foo"] = "bar",
[42] = "42",
2023-05-24 01:22:29 +02:00
}
2023-08-12 13:57:50 +02:00
if pos.y > 0 do
options["foo"] = "rab"
options[42] = "24"
@print("Conditional hit!")
end
@print(options.title)
@print(options["foo"])
@print(options[42])
2023-08-12 13:57:50 +02:00
return options