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

@@ -74,8 +74,8 @@ function draw()
local state = game.vars.state
if state == STATE_MENU then
renderer.text_scaled(game.width(, 2) / 2 - 40, game.height() / 2 - 30, "FLAPPY BIRD", true)
renderer.text_scaled(game.width(, 2) / 2 - 50, game.height() / 2, "Tap to Start", true)
renderer.text_scaled(game.width() / 2 - 40, game.height() / 2 - 30, "FLAPPY BIRD", true, 2)
renderer.text_scaled(game.width() / 2 - 50, game.height() / 2, "Tap to Start", true, 2)
elseif state == STATE_PLAYING then
-- Draw bird (convert to integer)
@@ -94,12 +94,12 @@ function draw()
end
-- Draw score
renderer.text_scaled(10, 10, "Score: " .. tostring(game.vars.score, 2), true)
renderer.text_scaled(10, 10, "Score: " .. tostring(game.vars.score), true, 2)
elseif state == STATE_GAME_OVER then
renderer.text_scaled(game.width(, 2) / 2 - 40, game.height() / 2 - 30, "GAME OVER", true)
renderer.text_scaled(game.width(, 2) / 2 - 30, game.height() / 2, "Score: " .. tostring(game.vars.score), true)
renderer.text_scaled(game.width(, 2) / 2 - 60, game.height() / 2 + 20, "Tap to Restart", true)
renderer.text_scaled(game.width() / 2 - 40, game.height() / 2 - 30, "GAME OVER", true, 2)
renderer.text_scaled(game.width() / 2 - 30, game.height() / 2, "Score: " .. tostring(game.vars.score), true, 2)
renderer.text_scaled(game.width() / 2 - 60, game.height() / 2 + 20, "Tap to Restart", true, 2)
end
end