From b3c3e0348f19125b5123d6f5c87e2cc91fd0172f Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Thu, 6 Mar 2014 02:59:55 +0000 Subject: Make multiplier system function, do some clean-ups. --- scoresystem.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scoresystem.h') 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; } -- cgit v1.2.3