diff options
author | chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> | 2014-03-06 02:59:55 +0000 |
---|---|---|
committer | chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> | 2014-03-06 02:59:55 +0000 |
commit | b3c3e0348f19125b5123d6f5c87e2cc91fd0172f (patch) | |
tree | 133bf1701f352b2687689fd14bf90bed6f256f37 /scoresystem.h | |
parent | 6cb0520416cb69d0461d62651eb1fbf48991d9cb (diff) | |
download | bullet-lab-remix-b3c3e0348f19125b5123d6f5c87e2cc91fd0172f.tar.xz |
Make multiplier system function, do some clean-ups.
Diffstat (limited to 'scoresystem.h')
-rw-r--r-- | scoresystem.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scoresystem.h b/scoresystem.h index ba07d9e..afbeaac 100644 --- a/scoresystem.h +++ b/scoresystem.h @@ -13,7 +13,7 @@ HangUpText MT[255]; void NewMT() { int i=0;while (MT[i].Active())++i; - char ttext[10];sprintf(ttext,"x%d",mult); + char ttext[10];sprintf(ttext,"x%.2lf",mult); MT[i].Init("./Resources/charmap.fnt",ttext,1.0f,200,-50); MT[i].Launch(vector2d(playerpos.x,playerpos.y-25)); } @@ -104,10 +104,12 @@ void Mult_FrameFunc() if (Current_Position!=1)return; ProcessMT();ProcessMultpo(); --multbrk; + if(!dsmc)lsc+=hge->Timer_GetDelta();else lsc=0; + if(lsc>1&&mult>1.0f)mult-=hge->Timer_GetDelta()/20.0f; if (multbrk<0) { multbrk=ThirtySeconds; - mult+=multbat; + mult+=multbat;lsc=0; NewMT(); if (multbat<5)++multbat; } |