aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xCHANGELOG.TXT2
-rw-r--r--levels.h44
-rw-r--r--main.cpp2
3 files changed, 45 insertions, 3 deletions
diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT
index d0d8133..3471abe 100755
--- a/CHANGELOG.TXT
+++ b/CHANGELOG.TXT
@@ -13,6 +13,8 @@ Bump version!
New assessment level "density test"...
New assessment level "pinball"...
New assessment level "Road blocks"...
+New assessment level "Extreme speeds"...
+Level corrections.
Improve density test.
Add screen shot. Press S for a screen shot.
Fix the upside down screen shot output.
diff --git a/levels.h b/levels.h
index f2691bf..eee8125 100644
--- a/levels.h
+++ b/levels.h
@@ -3789,7 +3789,7 @@ void Levelm2Part12()
tbrk+=hge->Timer_GetDelta();
if(avacurbrk>avabrk)
{
- CreateBullet2(400,300,re.NextInt(1.5,3),re.NextDouble(-pi,pi));
+ CreateBullet2(400,300,re.NextInt(1,2.5),re.NextDouble(-pi,pi));
avacurbrk=0;
avabrk=0.05-0.03*assetime/120;
if(avabrk<0.01)avabrk=0.01;
@@ -3978,8 +3978,8 @@ void Levelm2Part20()
tbrk-=hge->Timer_GetDelta();
if(tbrk<0)
{
- tbrk=1-0.25*(assetime/120.0f);if(tbrk<0.05)tbrk=0.05;
- delx=re.NextDouble(300,600);
+ tbrk=2-1*(assetime/120.0f);if(tbrk<0.75)tbrk=0.75;
+ delx=re.NextDouble(350,700);
resvpos=re.NextInt(0,49);
for(int i=0;i<50;++i)
{
@@ -3988,3 +3988,41 @@ void Levelm2Part20()
}
}
}
+void Levelm2Part21()
+{
+ frameleft=Infinity;Dis8ref=true;tbrk=0;
+ DisableAllTower=false;
+ if (IfShowTip)
+ {
+ IfShowTip=false;
+ FadeTip=false;
+ Current_Position=2;
+ ShowTip("Test 11 - Extreme speeds");
+ All2pnt();
+ return;
+ }
+ ++frameskips;
+ if (frameskips<10&&!LOWFPS)return;
+ frameskips=0;
+ for (int i=1;i<=33;++i)CreateTower8(i*24-12,12,500,10,20,30);
+ for (int i=1;i<=towcnt;++i)
+ if (tower[i].RendColor==0x80FFFFFF)
+ tower[i].RendColor=0x00FFFFFF;
+ for (int i=1;i<=towcnt;++i)
+ if ((tower[i].RendColor>>24)<=0x80)
+ tower[i].RendColor=tower[i].RendColor+0x01FFFFFF;
+ else{++part;return;}
+}
+void Levelm2Part22()
+{
+ frameleft=Infinity;
+ tbrk-=hge->Timer_GetDelta();
+ if (tbrk>0)return;
+ tbrk=3-2*(assetime/120.0f);
+ if(tbrk<0.5)tbrk=0.5;
+ for (int i=0;i<6;++i)
+ {
+ int p=CreateBullet2(playerpos.x+cos(i*pi/3.0f)*6,12+sin(i*pi/3.0f)*6,2,-pi/2);
+ bullet[p].alterColor=orange;
+ }
+}
diff --git a/main.cpp b/main.cpp
index 351a450..ca92a69 100644
--- a/main.cpp
+++ b/main.cpp
@@ -543,6 +543,8 @@ void CallLevels()
if (level==-2&&part==18)Levelm2Part18();
if (level==-2&&part==19)Levelm2Part19();
if (level==-2&&part==20)Levelm2Part20();
+ if (level==-2&&part==21)Levelm2Part21();
+ if (level==-2&&part==22)Levelm2Part22();
if (level==1&&part==5)level=2,part=0;
if (level==2&&part==10)