Fix Lua syntax errors caused by bad regex replacement

This commit is contained in:
Adolfo Reyna
2026-02-13 15:31:21 -05:00
parent 034867d2a7
commit 06f5976865
8 changed files with 49 additions and 49 deletions

View File

@@ -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)