Fix Lua syntax errors caused by bad regex replacement
This commit is contained in:
@@ -33,12 +33,12 @@ function draw()
|
||||
|
||||
-- Draw count (centered)
|
||||
local count_text = "Count: " .. tostring(game.vars.count)
|
||||
renderer.text_scaled(game.width(, 2) / 2 - 40, game.height() / 2 - 10, count_text, true)
|
||||
renderer.text_scaled(game.width() / 2 - 40, game.height() / 2 - 10, count_text, true, 2)
|
||||
|
||||
-- Draw last touch position
|
||||
if game.vars.count > 0 then
|
||||
local pos_text = "Last: (" .. tostring(game.vars.last_x) .. ", " .. tostring(game.vars.last_y) .. ")"
|
||||
renderer.text_scaled(20, game.height(, 2) - 30, pos_text, true)
|
||||
renderer.text_scaled(20, game.height() - 30, pos_text, true, 2)
|
||||
|
||||
-- Draw marker at last touch (convert to integers)
|
||||
renderer.circle(math.floor(game.vars.last_x + 0.5), math.floor(game.vars.last_y + 0.5), 5, true, false)
|
||||
|
||||
Reference in New Issue
Block a user