twnlua: bindgen.py capable of converting share/twn_api.h spec to lua bindings
This commit is contained in:
@ -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",
|
||||
}
|
||||
|
Reference in New Issue
Block a user