summaryrefslogtreecommitdiff
path: root/particle.bmx
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-11-30 00:21:31 +0000
committerIan C <ianc@noddybox.co.uk>2005-11-30 00:21:31 +0000
commit2432acd3b0cc49fb71cfee5b32e14e0eac773619 (patch)
tree3170d7268f9d381d36fb4c2c01200805e193bc1b /particle.bmx
parent991c2de75c4d8d78e135d38eae2dfbd09ac0573a (diff)
Updates
Diffstat (limited to 'particle.bmx')
-rw-r--r--particle.bmx5
1 files changed, 4 insertions, 1 deletions
diff --git a/particle.bmx b/particle.bmx
index 6eba5d3..fbf2b6f 100644
--- a/particle.bmx
+++ b/particle.bmx
@@ -164,7 +164,10 @@ Type TextParticles
sy=300
End Function
- Function Big(txt:String, r:Int, g:Int, b:Int)
+ Function Big(txt:String, r:Int=-1, g:Int=-1, b:Int=-1)
+ If r=-1 Then r=Rand(128,255)
+ If g=-1 Then g=Rand(128,255)
+ If b=-1 Then b=Rand(128,255)
plist.AddLast(TTextParticle.Create(GameGFX.font,txt,-1,GraphicsHeight()-GameGFX.font.MaxHeight()/2,0,0,r,g,b,1,-0.01,1,0))
plist.AddLast(TTextParticle.Create(GameGFX.font,txt,-1,GraphicsHeight()-GameGFX.font.MaxHeight()/2,0,0,r,g,b,1,-0.02,1,0.1))
End Function