singe/testScripts/scenetest.singe
2026-09-05 19:52:04 -05:00

25 lines
565 B
Text

-- Stage 1 test: the 3D layer clears to translucent green over the playing disc; overlay text sits on top.
local font = fontLoad("Singe/FreeSansBold.ttf", 28)
local frames = 0
fontSelect(font)
discPlay()
function onOverlayUpdate()
frames = frames + 1
overlayClear()
fontPrint(20, 20, "Overlay text above the scene, frame " .. frames)
if frames == 30 then
sceneEnable(true)
sceneSetBackground(0, 255, 0, 96)
end
if frames == 20 then
singeScreenshot()
end
if frames == 90 then
singeScreenshot()
end
if frames == 150 then
singeQuit()
end
end