From d37c7c7d2a6f4126eef87f3164b3f688f2db34e5 Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Fri, 28 Mar 2014 12:09:52 +0000 Subject: One new assessment level... --- CHANGELOG.TXT | 2 ++ levels.h | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ main.cpp | 2 ++ 3 files changed, 66 insertions(+) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index f62d946..2907fac 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -13,6 +13,8 @@ First two assessment levels. Two more assessment levels... Tow _more_ assessment levels...... Another assessment level... +Yet another level for assessment mode... why don't I bump the +version? Modify player attribute. Allow bullet to kill itself at a certain point. Add extborder attribute. diff --git a/levels.h b/levels.h index ce52a5f..774527c 100644 --- a/levels.h +++ b/levels.h @@ -3808,3 +3808,65 @@ void Levelm2Part12() tbrk=0;assrad+=pi/60; } } +double asssrd1; +void Levelm2Part13() +{ + frameleft=Infinity; + DisableAllTower=false; + if (IfShowTip) + { + IfShowTip=false; + FadeTip=false; + Current_Position=2; + ShowTip("Test 7 - Sine wave"); + All2pnt(); + return; + } + if (towcnt!=0)return ClearAll(false); + if(Current_Position==1) + { + for(int i=0;i<200;++i) + if (asscircles[i].GetRange()>1e-7&&asscircles[i].GetRange()<800) + asscircles[i].circ2pnt(); + memset(asscircles,0,sizeof(asscircles)); + ++part;tbrk=asssrd1=avacurbrk=0; + } +} +void Levelm2Part14() +{ + frameleft=Infinity; + tbrk+=hge->Timer_GetDelta(); + if(tbrk>0.075) + { + tbrk=0; + //right + for(int i=0;i<5;++i) + CreateBullet2(810,120*(i+1)+120*sin(asssrd1),2,0,true); + asssrd1+=pi/45; + //right2 + if(assetime>30) + { + for(int i=0;i<5;++i) + CreateBullet2(810,120*(i+1)+120*sin(asssrd1+pi/12),2,0,true); + } + //left + if(assetime>60) + { + for(int i=0;i<5;++i) + CreateBullet2(-10,120*(i+1)+120*sin(asssrd1),2,pi,true); + } + //left2 + if(assetime>90) + { + for(int i=0;i<5;++i) + CreateBullet2(-10,120*(i+1)+120*sin(asssrd1+pi/12),2,pi,true); + } + if(assetime>120) + { + avacurbrk+=hge->Timer_GetDelta(); + if(avacurbrk>2) + CreateBullet6(re.NextDouble(0,800),re.NextDouble(0,600),2,0,1,12,true), + avacurbrk=0; + } + } +} diff --git a/main.cpp b/main.cpp index 68aae9e..0a55988 100644 --- a/main.cpp +++ b/main.cpp @@ -535,6 +535,8 @@ void CallLevels() if (level==-2&&part==10)Levelm2Part10(); if (level==-2&&part==11)Levelm2Part11(); if (level==-2&&part==12)Levelm2Part12(); + if (level==-2&&part==13)Levelm2Part13(); + if (level==-2&&part==14)Levelm2Part14(); if (level==1&&part==5)level=2,part=0; if (level==2&&part==10) -- cgit v1.2.3