diff options
author | Ian C <ianc@noddybox.co.uk> | 2007-10-12 23:31:52 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2007-10-12 23:31:52 +0000 |
commit | 34faed4b450f60c7db445575bc5ad2070bb68538 (patch) | |
tree | 97a67c9214dd4c4b6e6c52b2439faef493bbb6e4 /game.bmx | |
parent | b847fa6928c5e7b2731f54b362b1772f94508d4c (diff) |
Diffstat (limited to 'game.bmx')
-rw-r--r-- | game.bmx | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -103,7 +103,7 @@ Type TGame SetColor(255,col,col) DrawLine(x,y,lx,ly) - GameGFX.smallfont.DrawColoured(s,tx,ty+2,255,col,col) + GameGFX.smallfont.Draw(s,tx,ty+2,255,col,col) End Method Method Intro() @@ -122,10 +122,10 @@ Type TGame SetScale(2,2) - GameGFX.font.CentreColoured(level.name,y,col,col,255-col) + GameGFX.font.Centre(level.name,y,col,col,255-col) y:+yi - GameGFX.font.CentreColoured("Need "+level.winpercent+"% to clear",y,col/2,col,col) + GameGFX.font.Centre("Need "+level.winpercent+"% to clear",y,col/2,col,col) y:+yi Local n:Int=Int(level.shipmass) @@ -136,18 +136,18 @@ Type TGame w=-w EndIf - GameGFX.font.CentreColoured("Your ship has a mass of " + n + " Newtons",y,col/2,col,col) + GameGFX.font.Centre("Your ship has a mass of " + n + " Newtons",y,col/2,col,col) y:+yi If level.maxwave>1 - GameGFX.font.CentreColoured("You can fire "+level.maxwave+" Gravity Waves of " + w + " Newtons",y,col/2,col,col) + GameGFX.font.Centre("You can fire "+level.maxwave+" Gravity Waves of " + w + " Newtons",y,col/2,col,col) ElseIf level.maxwave=1 - GameGFX.font.CentreColoured("You can fire 1 Gravity Wave of " + w + " Newtons",y,col/2,col,col) + GameGFX.font.Centre("You can fire 1 Gravity Wave of " + w + " Newtons",y,col/2,col,col) EndIf y:+yi If level.wrap - GameGFX.font.CentreColoured("THE UNIVERSE IS WARPED!",y,col,col/2,col/2) + GameGFX.font.Centre("THE UNIVERSE IS WARPED!",y,col,col/2,col/2) y:+yi EndIf @@ -276,14 +276,14 @@ Type TGame EndIf GameGFX.font.Draw("PARTICLES",0,0) - GameGFX.font.DrawColoured(num-captured-lost,txtoff[0]+10,0,255,255,0) + GameGFX.font.Draw(num-captured-lost,txtoff[0]+10,0,255,255,0) GameGFX.font.Draw("CAPTURED",200,0) If percent<level.winpercent - GameGFX.font.DrawColoured(percent+"%",txtoff[1]+210,0,255,50,50) + GameGFX.font.Draw(percent+"%",txtoff[1]+210,0,255,50,50) Else - GameGFX.font.DrawColoured(percent+"%",txtoff[1]+210,0,50,255,50) + GameGFX.font.Draw(percent+"%",txtoff[1]+210,0,50,255,50) EndIf GameGFX.font.Draw("WAVES",400,0) @@ -298,7 +298,7 @@ Type TGame If timer>10 GameGFX.font.Draw(timer,txtoff[2]+610,0) Else - GameGFX.font.DrawColoured(timer,txtoff[2]+610,0,255,0,0) + GameGFX.font.Draw(timer,txtoff[2]+610,0,255,0,0) EndIf Select done @@ -338,7 +338,7 @@ Type TGame Case LEVEL_WON If final_percent=100 SetScale(4,4) - GameGFX.font.CentreColoured("PERFECT!",50,col,255-col,col/2) + GameGFX.font.Centre("PERFECT!",50,col,255-col,col/2) col:+coli If col=255 Or col=0 @@ -350,8 +350,8 @@ Type TGame SetScale(2,2) SetAlpha(0.7) - GameGFX.font.CentreColoured("LEVEL COMPLETED!",GraphicsHeight()/2+20,255,255,0) - GameGFX.font.CentreColoured("You got the pass mark with "+pass_time+" left on the clock",GraphicsHeight()/2+40,255,255,0) + GameGFX.font.Centre("LEVEL COMPLETED!",GraphicsHeight()/2+20,255,255,0) + GameGFX.font.Centre("You got the pass mark with "+pass_time+" left on the clock",GraphicsHeight()/2+40,255,255,0) GameGFX.font.Centre("Press Space",GraphicsHeight()/2+80) SetScale(1,1) SetAlpha(1) @@ -363,7 +363,7 @@ Type TGame Case LEVEL_LOST SetScale(2,2) SetAlpha(0.7) - GameGFX.font.CentreColoured("LEVEL FAILED!",GraphicsHeight()/2+20,255,64,64) + GameGFX.font.Centre("LEVEL FAILED!",GraphicsHeight()/2+20,255,64,64) GameGFX.font.Centre("Press Space",GraphicsHeight()/2+60) SetScale(1,1) SetAlpha(1) |