/apps/twnlua: don't use module tables
This commit is contained in:
@ -4,17 +4,17 @@ offset = { x = 0, y = 0 }
|
||||
angle = 0
|
||||
|
||||
function game_tick()
|
||||
input.action {
|
||||
input_action {
|
||||
name = "press",
|
||||
control = "A"
|
||||
}
|
||||
|
||||
draw.rectangle {
|
||||
draw_rectangle {
|
||||
rect = { x = 0, y = 0, w = 640, h = 360 },
|
||||
color = { r = 127, g = 0, b = 127, a = 255 },
|
||||
}
|
||||
|
||||
draw.sprite {
|
||||
draw_sprite {
|
||||
texture = "/assets/title.png",
|
||||
rect = {
|
||||
x = 320 - (320 / 2),
|
||||
@ -24,8 +24,8 @@ function game_tick()
|
||||
},
|
||||
}
|
||||
|
||||
if input.action_pressed { name = "press" } then
|
||||
draw.text {
|
||||
if input_action_pressed { name = "press" } then
|
||||
draw_text {
|
||||
string = "it never happened",
|
||||
position = offset,
|
||||
font = "/fonts/kenney-pixel.ttf",
|
||||
|
Reference in New Issue
Block a user