diff options
| author | Ian C <ianc@noddybox.co.uk> | 2005-09-28 01:45:26 +0000 |
|---|---|---|
| committer | Ian C <ianc@noddybox.co.uk> | 2005-09-28 01:45:26 +0000 |
| commit | c5e803ee257a3f4207779975f00a5b8818ef8263 (patch) | |
| tree | 74729671d363425aa9b966313232fefad7fe4aae /game.bmx | |
| parent | 497670ace3bfaf6b28931ac12c4a0a8ee553bf55 (diff) | |
Development checkin
Diffstat (limited to 'game.bmx')
| -rw-r--r-- | game.bmx | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -142,7 +142,13 @@ Type TGame EndIf EndIf - Local percent:Int=Int(Float(captured)/Float(num)*100.0) + Local percent:Int + + If done<>LEVEL_NOTOVER + percent=final_percent + Else + percent:Int=Int(Float(captured)/Float(num)*100.0) + EndIf If (timer=0 Or num=captured+lost) And done=LEVEL_NOTOVER final_percent=percent @@ -157,10 +163,11 @@ Type TGame GameGFX.font.DrawColoured(num-captured-lost,txtoff[0]+10,0,255,255,0) GameGFX.font.Draw("CAPTURED",200,0) - If done=LEVEL_NOTOVER - GameGFX.font.DrawColoured(percent+"%",txtoff[1]+210,0,255,0,255) + + If percent<level.winpercent + GameGFX.font.DrawColoured(percent+"%",txtoff[1]+210,0,255,50,50) Else - GameGFX.font.DrawColoured(final_percent+"%",txtoff[1]+210,0,255,0,255) + GameGFX.font.DrawColoured(percent+"%",txtoff[1]+210,0,50,255,50) EndIf GameGFX.font.Draw("TIMER",600,0) |
