From 4dcadbd2d78207777e62e05c64e7dd5dae19f955 Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Mon, 10 Mar 2014 03:22:54 +0000 Subject: Rename levels, move them from Level7 to Levelm1 --- CHANGELOG.TXT | 2 +- levels.h | 49 +++++++++++++++++++++++++++++++++---------------- main.cpp | 24 +++++++++++++----------- 3 files changed, 47 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index b152580..46347c8 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -2,12 +2,12 @@ Next version: ?????? New levels... -Rename function entries for Level -1 Add missing tips. Pre-Released versions: 0.8.0-0_PR (b74) New level Achromatopsia. +Move levels to level -1. Rename "Minesweeper"->"Spiky", add noname2pnt. 0.7.3-0_PR (b73) diff --git a/levels.h b/levels.h index 9140091..4b5e171 100644 --- a/levels.h +++ b/levels.h @@ -2972,8 +2972,25 @@ void Level7Part26() } for(int i=0;i<100;++i)if(rtv[i].isActive())rtv[i].Update(); } -//Level8 stats from here -void Level7Part27()//3 circles +//Level-1 stats from here +void Levelm1Part0() +{ + frameleft=50;All2pnt();towcnt=0;bgbrk=0; + DisableAllTower=false; + if (IfShowTip) + { + IfShowTip=false; + FadeTip=false; + LE_Active=false; + Current_Position=2; + ShowTip("\ +Level -1-Over the Horizon\n\ +?\ +"); + frameleft=TenSeconds;++part; + } +} +void Levelm1Part1()//3 circles { frameleft=AMinute;clrtime=2;towcnt=0; DisableAllTower=false; @@ -2989,7 +3006,7 @@ void Level7Part27()//3 circles ++part;All2pnt();avabrk=1.0f;avacurbrk=0; } } -void L7P26Creator(vector2d p,int cnt,TColors col) +void CircCreator(vector2d p,int cnt,TColors col) { for (int i=0;iTimer_GetDelta(); avabrk=(frameleft/(double)AMinute)*0.5f+0.5f; if(avacurbrk>avabrk) { avacurbrk=0; - L7P26Creator(vector2d(400,250),60,red); - L7P26Creator(vector2d(350,336.6),60,green); - L7P26Creator(vector2d(450,336.6),60,blue); + CircCreator(vector2d(400,250),60,red); + CircCreator(vector2d(350,336.6),60,green); + CircCreator(vector2d(450,336.6),60,blue); } } BCircle scircles[200]; double rspd[200]; -void Level7Part29()//circles +void Levelm1Part3()//circles { frameleft=AMinute;clrtime=2;towcnt=0; DisableAllTower=false; @@ -3030,7 +3047,7 @@ void Level7Part29()//circles ++part;All2pnt();avabrk=1.0f;avacurbrk=1.0f;memset(scircles,0,sizeof(scircles)); } } -void Level7Part30() +void Levelm1Part4() { avacurbrk+=hge->Timer_GetDelta(); avabrk=0.1+(frameleft/(double)AMinute)*0.4f; @@ -3057,14 +3074,14 @@ void Level7Part30() } } } -void Level7Part31()//Spiky +void Levelm1Part5()//Spiky { frameleft=AMinute+ThirtySeconds; All2pnt();towcnt=0; Lasercnt=0; ++part;avabrk=1;avacurbrk=0.5; } -void Level7Part32()//Spiky-child +void Levelm1Part6()//Spiky-child { avacurbrk+=hge->Timer_GetDelta(); if (avacurbrk>avabrk) @@ -3077,7 +3094,7 @@ void Level7Part32()//Spiky-child if (frameleftTimer_GetDelta(); if (avacurbrk>avabrk) @@ -3102,13 +3119,13 @@ void Level7Part34()//Achromatopsia1-child } aca.Update();acb.Update(); } -void Level7Part35()//Achromatopsia2 +void Levelm1Part9()//Achromatopsia2 { frameleft=AMinute; aca.Init(red,1);acb.Init(green,1); ++part;avabrk=1.5f;avacurbrk=0; } -void Level7Part36()//Achromatopsia2-child +void Levelm1Part10()//Achromatopsia2-child { avacurbrk+=hge->Timer_GetDelta(); if (avacurbrk>avabrk) diff --git a/main.cpp b/main.cpp index 1820ace..72cdb81 100644 --- a/main.cpp +++ b/main.cpp @@ -445,23 +445,25 @@ void CallLevels() if (level==7&&part==23)Level7Part23(); if (level==7&&part==24)Level7Part24(); if (level==7&&part==25)Level7Part25(); - if (level==7&&part==26)Level7Part26(); - if (level==7&&part==27)Level7Part27(); - if (level==7&&part==28)Level7Part28(); - if (level==7&&part==29)Level7Part29(); - if (level==7&&part==30)Level7Part30(); - if (level==7&&part==31)Level7Part31(); - if (level==7&&part==32)Level7Part32(); - if (level==7&&part==33)Level7Part33(); - if (level==7&&part==34)Level7Part34(); - if (level==7&&part==35)Level7Part35(); - if (level==7&&part==36)Level7Part36(); + if (level==-1&&part==26)Level7Part26(); + if (level==-1&&part==0)Levelm1Part0(); + if (level==-1&&part==1)Levelm1Part1(); + if (level==-1&&part==2)Levelm1Part2(); + if (level==-1&&part==3)Levelm1Part3(); + if (level==-1&&part==4)Levelm1Part4(); + if (level==-1&&part==5)Levelm1Part5(); + if (level==-1&&part==6)Levelm1Part6(); + if (level==-1&&part==7)Levelm1Part7(); + if (level==-1&&part==8)Levelm1Part8(); + if (level==-1&&part==9)Levelm1Part9(); + if (level==-1&&part==10)Levelm1Part10(); if (level==1&&part==5)level=2,part=0; if (level==2&&part==10)level=3,part=0; if (level==3&&part==7)level=4,part=0; if (level==4&&part==26)level=5,part=0; if (level==5&&part==23)level=6,part=0; if (level==6&&part==32)level=7,part=0; + if (level==7&&part==27)level=-1,part=0; } bool ProcessCurCred() { -- cgit v1.2.3