twnlua: bindgen.py capable of converting share/twn_api.h spec to lua bindings

This commit is contained in:
veclavtalica
2024-12-23 20:59:00 +03:00
parent c4c097f050
commit e7ed72dfc0
6 changed files with 540 additions and 212 deletions

View File

@ -9,17 +9,8 @@ function game_tick()
color = { r = 127, g = 0, b = 127, a = 255 },
}
input.action {
name = "move_up",
control = input.CONTROL_L,
}
if input.action_pressed "move_up" then
draw.text { string = "BOO!" }
end
draw.sprite {
texture = "/assets/title.png",
path = "/assets/title.png",
rect = {
x = 320 - (320 / 2),
y = 180 - (128 / 2),
@ -29,7 +20,7 @@ function game_tick()
}
draw.text {
string = "IT KEEPS HAPPENING",
string = "it never happened",
position = offset,
font = "/fonts/kenney-pixel.ttf",
}