aboutsummaryrefslogtreecommitdiff
path: root/levels.h
diff options
context:
space:
mode:
Diffstat (limited to 'levels.h')
-rw-r--r--levels.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/levels.h b/levels.h
index 35bd4dd..fcd5a48 100644
--- a/levels.h
+++ b/levels.h
@@ -2747,8 +2747,8 @@ void Level7Part13()
L7P13Creator(vector2d(450,336.6),60,blue);
}
}
-BCircle scircles[50];
-double rspd[50];int c;
+BCircle scircles[200];
+double rspd[200];
void Level7Part14()
{
frameleft=AMinute;clrtime=2;towcnt=0;
@@ -2762,31 +2762,32 @@ void Level7Part14()
}
if (Current_Position==1)
{
- ++part;All2pnt();avabrk=1.0f;avacurbrk=1.0f;memset(scircles,0,sizeof(scircles));c=0;
+ ++part;All2pnt();avabrk=1.0f;avacurbrk=1.0f;memset(scircles,0,sizeof(scircles));
}
}
void Level7Part15()
{
avacurbrk+=hge->Timer_GetDelta();
- avabrk=0.5+(frameleft/(double)AMinute)*0.5f;
+ avabrk=0.1+(frameleft/(double)AMinute)*0.4f;
if(avacurbrk>avabrk)
{
avacurbrk=0;
- for(int i=0;i<50;++i)
+ for(int i=0;i<200;++i)
{
if (scircles[i].GetRange()>510||scircles[i].GetRange()<1e-7)
{
- scircles[i].Init(1,(c&1?1:-1)*(frameleft<TenSeconds?0.0002:0.0001),60,vector2d(400,300),(TColors)c);
- ++c;c%=8;rspd[i]=0.5;break;
+ scircles[i].Init(1,(rand()&1?1:-1)*(frameleft<TwentySeconds?0.0003:0.0002),36,vector2d(400,300),(TColors)(rand()%8),(TColors)(rand()%8));
+ rspd[i]=0.575+(frameleft/(double)AMinute)*0.1;break;
}
}
}
- for(int i=0;i<50;++i)
+ for(int i=0;i<200;++i)
{
if (scircles[i].GetRange()>1e-7&&scircles[i].GetRange()<510)
{
scircles[i].SetRange(scircles[i].GetRange()+(LOWFPS?17:1)*rspd[i]);
- if (rspd[i]>0.05)rspd[i]-=LOWFPS?0.0085:0.0005;
+ if (rspd[i]>0.002)rspd[i]-=0.0005*(LOWFPS?17:1);
+ if (rspd[i]<=0.002)rspd[i]=0.002;
scircles[i].Update();
}
}