Revert "Removing CoinMode here."

This reverts commit 7393835644.
This commit is contained in:
Colby Klein
2013-02-11 12:12:28 -08:00
parent 3f32d9114f
commit 804a5d84a0
2 changed files with 9 additions and 2 deletions
@@ -48,7 +48,13 @@ return Def.ActorFrame {
LoadFont("_arial black 20px")..{
InitCommand=cmd(xy,SCREEN_CENTER_X,SCREEN_HEIGHT-20;zoom,1;shadowlength,0;playcommand,"Text");
TextCommand=function(self)
if GAMESTATE:GetCoinMode() == 'CoinMode_Free' then
if GAMESTATE:GetCoinMode() == 'CoinMode_Pay' then
local Coins = GAMESTATE:GetCoins()
local CoinForCredit = GAMESTATE:GetCoinsNeededToJoin()
local Credits = math.floor(Coins/CoinForCredit)
local Remain = Coins % CoinForCredit
self:settext(string.format("CREDIT(S) %i[%i/%i]", Credits, Remain, CoinForCredit))
elseif GAMESTATE:GetCoinMode() == 'CoinMode_Free' then
self:settext("Free Play")
else --homemode
self:settext("Home Mode");
+2 -1
View File
@@ -20,7 +20,8 @@ function EvaluationNext()
end
function GameOverNext()
if GAMESTATE:GetCoinMode() == 'CoinMode_Free'
if (GAMESTATE:GetCoinMode() == 'CoinMode_Pay' and GAMESTATE:GetCoins() > 0)
or GAMESTATE:GetCoinMode() == 'CoinMode_Free'
then
return "ScreenTitleMenu"
else