From 34faed4b450f60c7db445575bc5ad2070bb68538 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 12 Oct 2007 23:31:52 +0000 Subject: Updates for newer modules and bmax --- game.bmx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'game.bmx') diff --git a/game.bmx b/game.bmx index fb0ada3..6dea787 100644 --- a/game.bmx +++ b/game.bmx @@ -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 percent10 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) -- cgit v1.2.3