标题
增加 1 行删除 1 行
1搬运 大旅行家1.7.11搬运 大旅行家1.8
正文
增加 56 行删除 5 行
13 行未改动141516171819202114 行未改动363738394041424344454647484950515231 行未改动848586878889909131 行未改动123124125126127128129130125 行未改动全部展开256257258259260261262263125 行未改动全部展开38939039139239339439539620 行未改动41741841942042142242342416 行未改动44144244344444544644744857 行未改动506507508509510511512513233 行未改动全部展开747748749750751752753754755756757758759760127 行未改动全部展开13 行未改动void rccsrand(unsigned int seed){rcc11.seed(seed);}auto rccrand(){return rcc11();}#define srand(a) rccsrand(a)#define rand() rccrand()//------//#define Debugground#define Groundinfo#define GroundinfoMore14 行未改动inline void printtext(const char*,int);HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);//------------char screen[25][100];int x=9,y=15,gy=16,lastgy=16,gyup=1,seay=16,lastjumpy=15,startdropy=15,tick=0,tempclock,startclock,score=0,lastscore=0,woodt=0;char gc;int ticksp=80;int landtype=1,landscape,landhold=0,jumpup=0,landymax=23,landymin=5,issea=0;bool ishighland=0,isforest=0;bool ispressp=0,ispressw=0,ispressd=0,ispressa=0,is2dt=0,is3dt=0,isndt=0,isseatoland=0,isinwayed=0;bool sttus=0,ismain=0,isstrint;//----achivement#define achivementtotal 27int treewalktick=0,protecttick=0,nopressdtick=0,nopresswtick=0,staylefttick=0,stayx0tick=0,getuptolandx=2147483647,last2dtx=2147483640,last3dtx=2147483641,lastndtx=2147483642;struct achi{string name,discribe;// char name[100],discribe[1000];//C31 行未改动tfac(24,"[二岔口]","来到“溶洞”地形。",10)tfac(25,"[森溶平]","来到“森林平原溶洞”地形。",13)tfac(26,"[一树三步高]","在一棵树上完成四段跳。16番。",13)tfac(27,"[一树四步高]","在一棵树上完成五段跳。32番。",13)}void achiif(){#define achiset(i,t) if(!achis[i].isgeted){achis[i].isgeted=1;achis[i].showtick=t;achis[i].gettick=tick;}if(is2dt){31 行未改动//22 in movepeople()if(landtype==2 && !issea){achiset(23,30);}if(landtype==4){achiset(24,30);}if(landtype==4 && landscape==250 && isforest){if(!achis[25].isgeted) score+=1000;achiset(25,50);}}void achishow(){for(int i=0;i<=achivementtotal;i++){if(achis[i].showtick){125 行未改动全部展开else if(seay<=i && i<gy && (landtype==2 or isseatoland) && issea) screen[i][99]='~';else screen[i][99]=' ';//checkkeys()}istreestart=0;lastgy=gy;}inline void groundmove(){125 行未改动全部展开landhold--;}inline void movepeople(){isinwayed=0;if(ispressw && (screen[y+1][x]!=' ' or screen[y][x]=='-' or screen[y][x]=='=')){jumpup=2;if(screen[y][x]=='~') jumpup=1;else if(screen[y+1][x]=='~' && screen[y][x]==' ') jumpup=0;20 行未改动else{is2dt=1,score+=2;last2dtx=tick+x;}}else{is2dt=is3dt=0;}if(screen[y+1][x]!='~') lastjumpy=y;}if(ispressd && screen[y][x]==' ' && x<95) x++;16 行未改动}}}}if(screen[y][x]=='-' or screen[y][x]=='='){x--;isinwayed=1;}else if(screen[y][x]=='*'){int i;for(i=y;i>=0;i--){57 行未改动}//-------------int main(){system("mode con cols=120 lines=35");// #if __cplusplus>=201100// CONSOLE_CURSOR_INFO cursor_infomdg={1,0};SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_infomdg);// #endif// #if __cplusplus>=201100233 行未改动全部展开//---#ifdef Groundinfoprintf("landscape:%d ",landscape);#ifdef GroundinfoMoreprintf("ishighland:%d isforest:%d ",ishighland,isforest);#endif#ifdef GroundinfoChineseprintf("(");if(ishighland) printf("高原");if(isforest) printf("森林");switch(landtype){case 1:case 4:switch(landscape){case 10:127 行未改动全部展开13 行未改动14151617181920212214 行未改动373839404142434445464748495051525331 行未改动858687888990919293949531 行未改动127128129130131132133134135136137138125 行未改动全部展开264265266267268269270271272273274275276277278279280125 行未改动全部展开40640740840941041141241341420 行未改动43543643743843944044144244344444516 行未改动46246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449557 行未改动553554555556557558559560561562563233 行未改动全部展开797798799800801802803804805806807808809810811127 行未改动全部展开13 行未改动void rccsrand(unsigned int seed){rcc11.seed(seed);}auto rccrand(){return rcc11();}#define srand(a) rccsrand(a)#define rand() rccrand()//------//#define Debugground#define Groundinfo#define GroundinfoMore14 行未改动inline void printtext(const char*,int);HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);//------------char screen[25][100];int x=9,y=15,gy=16,lastgy=16,gyup=1,seay=16,lastjumpy=15,startdropy=15,tick=0,tempclock,startclock,score=0,lastscore=0,woodt=0,kill_mons=0,kickkill=0;char gc;int ticksp=80;int landtype=1,landscape,landhold=0,jumpup=0,landymax=23,landymin=5,issea=0;bool ishighland=0,isforest=0,ismonster=1;bool ispressp=0,ispressw=0,ispressd=0,ispressa=0,is2dt=0,is3dt=0,isndt=0,isseatoland=0,isinwayed=0,isjumptree=0;bool sttus=0,ismain=0,isstrint;//----achivement#define achivementtotal 30int treewalktick=0,protecttick=0,nopressdtick=0,nopresswtick=0,staylefttick=0,stayx0tick=0,getuptolandx=2147483647,last2dtx=2147483640,last3dtx=2147483641,lastndtx=2147483642;struct achi{string name,discribe;// char name[100],discribe[1000];//C31 行未改动tfac(24,"[二岔口]","来到“溶洞”地形。",10)tfac(25,"[森溶平]","来到“森林平原溶洞”地形。",13)tfac(26,"[一树三步高]","在一棵树上完成四段跳。16番。",13)tfac(27,"[一树四步高]","在一棵树上完成五段跳。32番。",13)tfac(28,"[怪物猎人]","击杀一个怪物",10)tfac(29,"[血流成河]","击杀100个怪物",13)tfac(30,"[骑士踢]","通过从树上跳下击杀共10个怪物",13)}void achiif(){#define achiset(i,t) if(!achis[i].isgeted){achis[i].isgeted=1;achis[i].showtick=t;achis[i].gettick=tick;}if(is2dt){31 行未改动//22 in movepeople()if(landtype==2 && !issea){achiset(23,30);}if(landtype==4){achiset(24,30);}if(landtype==4 && landscape==250 && isforest){if(!achis[25].isgeted) score+=1000;achiset(25,50);}if(kill_mons==1){achiset(28,50)}if(kill_mons==1){achiset(28,30)}if(kill_mons==100){achiset(29,50)}if(kickkill==10){achiset(30,50)}}void achishow(){for(int i=0;i<=achivementtotal;i++){if(achis[i].showtick){125 行未改动全部展开else if(seay<=i && i<gy && (landtype==2 or isseatoland) && issea) screen[i][99]='~';else screen[i][99]=' ';//checkkeys()}for(int i=0;i<25;i++){if(screen[i+1][99]=='-'&&ismonster&&screen[i][99]==' '){int randsss=rand()%100;randsss%=100;if(randsss<5){screen[i][99]='o';}}}istreestart=0;lastgy=gy;}inline void groundmove(){125 行未改动全部展开landhold--;}inline void movepeople(){isinwayed=0;if(screen[y+1][x]=='-'||screen[y+1][x]=='='||screen[y+1][x]=='*'||screen[y+1][x]=='~'){isjumptree=0;}if(ispressw && (screen[y+1][x]!=' ' or screen[y][x]=='-' or screen[y][x]=='=')){jumpup=2;if(screen[y][x]=='~') jumpup=1;else if(screen[y+1][x]=='~' && screen[y][x]==' ') jumpup=0;20 行未改动else{is2dt=1,score+=2;last2dtx=tick+x;}}if(screen[y+1][x]=='*'){isjumptree=1;}else{is2dt=is3dt=0;}if(screen[y+1][x]!='~') lastjumpy=y;}if(ispressd && screen[y][x]==' ' && x<95) x++;16 行未改动}}}}if(screen[y+1][x]=='o'){if(isjumptree){kickkill++;}score+=10;screen[y+1][x]=' ';kill_mons++;}if(screen[y][x]=='o'){Sleep(1000);system("cls");printtext(" _____ ______ _________ ________ ______ \n\\ / / \\ | | | \\ | | | \\ \n \\ / | | | | | | | | | |\n \\ / | | | | | | | | | |\n \\ / | | | | | | | |-------- | |\n | | | | | | | | | | |\n | | | | | | | | | | |\n | \\_____/ \\_____/ |______/ ____|____ |________ |______/\n",4);/*_____ ______ _________ ________ ______\ / / \ | | | \ | | | \\ / | | | | | | | | | |\ / | | | | | | | | | |\ / | | | | | | | |-------- | || | | | | | | | | | || | | | | | | | | | || \_____/ \_____/ |______/ ____|____ |________ |______/*/printf("You are out...\n");Sleep(2000);printf("You has lived:%d ticks and get %d scores!\n",tick,score);Sleep(2000);printf("种子:%u\n",seedv);for(int i=0;i<=achivementtotal;i++){achishow2(i);Sleep(50);}Sleep(3000);printf("Press any key......");_getch();exit(0);}if(screen[y][x]=='-' or screen[y][x]=='='){x--;isinwayed=1;}else if(screen[y][x]=='*'){int i;for(i=y;i>=0;i--){57 行未改动}//-------------int main(){system("mode con cols=120 lines=35");struct _timeb T;_ftime(&T);srand(T.millitm);// #if __cplusplus>=201100// CONSOLE_CURSOR_INFO cursor_infomdg={1,0};SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_infomdg);// #endif// #if __cplusplus>=201100233 行未改动全部展开//---#ifdef Groundinfoprintf("landscape:%d ",landscape);#ifdef GroundinfoMoreprintf("ishighland:%d isforest:%d ismonster:%d",ishighland,isforest,ismonster);#endif#ifdef GroundinfoChineseprintf("(");if(ishighland) printf("高原");if(isforest) printf("森林");if(ismonster) printf("test");switch(landtype){case 1:case 4:switch(landscape){case 10:127 行未改动全部展开