mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
V1 update (#1)
This commit is contained in:
committed by
Squishy (C6H12O6+NaCl+H2O)
parent
3343d8711b
commit
1d6643448e
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user