diff --git a/games/lua_examples/snake.lua b/games/lua_examples/snake.lua index 0c7b8c4..6292f91 100644 --- a/games/lua_examples/snake.lua +++ b/games/lua_examples/snake.lua @@ -110,12 +110,12 @@ function draw() -- Draw: MENU if state == STATE_MENU then - renderer.text_scaled(game.width(, 2) / 2 - 30, game.height() / 2 - 20, "SNAKE", true) - renderer.text_scaled(game.width(, 2) / 2 - 50, game.height() / 2, "Tap to Start", true) + renderer.text(game.width() / 2 - 30, game.height() / 2 - 20, "SNAKE", true) + renderer.text(game.width() / 2 - 50, game.height() / 2, "Tap to Start", true) if game.vars.high_score > 0 then local hs_text = "High: " .. tostring(game.vars.high_score) - renderer.text_scaled(game.width(, 2) / 2 - 30, game.height() / 2 + 20, hs_text, true) + renderer.text(game.width() / 2 - 30, game.height() / 2 + 20, hs_text, true) end -- Draw: PLAYING @@ -134,16 +134,16 @@ function draw() -- Draw score local score_text = "Score: " .. tostring(game.vars.score) - renderer.text_scaled(5, 5, score_text, true, 2) + renderer.text(5, 5, score_text, true) -- Draw: GAME_OVER elseif state == STATE_GAME_OVER then - renderer.text_scaled(game.width(, 2) / 2 - 40, game.height() / 2 - 20, "GAME OVER", true) + renderer.text(game.width() / 2 - 40, game.height() / 2 - 20, "GAME OVER", true) local score_text = "Score: " .. tostring(game.vars.score) - renderer.text_scaled(game.width(, 2) / 2 - 40, game.height() / 2, score_text, true) + renderer.text(game.width() / 2 - 40, game.height() / 2, score_text, true) - renderer.text_scaled(game.width(, 2) / 2 - 60, game.height() / 2 + 20, "Tap to Continue", true) + renderer.text(game.width() / 2 - 60, game.height() / 2 + 20, "Tap to Continue", true) end end