Added custom win text on mobile

This commit is contained in:
theo@manjaro 2022-03-09 16:25:29 +01:00
parent c13b878b45
commit f7efcb57d5
3 changed files with 3 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -3,7 +3,9 @@ local gen= {}
function gen:new(game,winner)
local End = game.objects.base:new(game,0,0,0,0)
End.sprite = game:newImage("text/win/"..winner..".png")
local folder = "win"
if game.OSTYPE=="Mobile" then folder = "winmobile" end
End.sprite = game:newImage("text/"..folder.."/"..winner..".png")
End:register("End")
function End:step(dt) end