V1 update (#1)

This commit is contained in:
Nguyễn Quốc Hưng
2024-06-06 16:01:24 +07:00
committed by Squishy (C6H12O6+NaCl+H2O)
parent 3343d8711b
commit 1d6643448e
30 changed files with 1000 additions and 228 deletions

View File

@@ -3,9 +3,12 @@ local ReplayTestScene = SCENE:extend()
local GAME
local error_message
local valid_data
local prev_scene
function ReplayTestScene:new(input_file)
prev_scene = SCENE
if not input_file then
valid_data = false
return
@@ -27,7 +30,10 @@ function ReplayTestScene:new(input_file)
end
function ReplayTestScene:render()
MainBackground()
prev_scene:render()
love.graphics.setColor(0, 0, 0, 0.8)
love.graphics.rectangle("fill", 0, 0, 640, 480)
if valid_data then
if error_message then
drawText("Replay test failed! Data corrupted!", 80, 40, 1000)
@@ -39,7 +45,7 @@ function ReplayTestScene:render()
end
else
drawText("Replay test failed! Not Tromi's replay data", 80, 40, 1000)
drawText("Press any key to go back, and check your device's clipboard again!", 80, 100, 1000)
drawText("Press any key to go back, and check your device's clipboard again!", 80, 70, 1000)
end
end