

#include<windows.h>
#include<iostream>
#include<conio.h>
#include<cstdlib>
#include<string>
#include<limits>
using namespace std;
bool running=false,keyStates[256]={false};
enum Mode{FIXED_POINT,FOLLOW_MOUSE};
Mode currentMode=FIXED_POINT;
int targetX=-1,targetY=-1,speed,killcnt=0;
void left_click(int x,int y,int speed){SetCursorPos(x,y);mouse_event(MOUSEEVENTF_LEFTDOWN,x,y,0,0);Sleep(speed);mouse_event(MOUSEEVENTF_LEFTUP,x,y,0,0);}
void right_click(int x,int y,int speed){SetCursorPos(x,y);mouse_event(MOUSEEVENTF_RIGHTDOWN,x,y,0,0);Sleep(speed);mouse_event(MOUSEEVENTF_RIGHTUP,x,y,0,0);}
const string STUDENT_MAIN_PATH="C:\\Program Files (x86)\\Mythware\\极域课堂管理系统软件V6.0 2016 豪华版\\StudentMain.exe";
void checkGlobalKeys(){
if(GetAsyncKeyState('B')&0x8000)if(!keyStates['B']){killcnt++;system("taskkill /F /IM StudentMain.exe /T >nul 2>&1");keyStates['B']=true;}
else keyStates['B']=false;
if(GetAsyncKeyState('C')&0x8000)if(!keyStates['C']){system("start taskmgr.exe >nul 2>&1");keyStates['C']=true;}
else keyStates['C']=false;
if(GetAsyncKeyState('P')&0x8000)if(!keyStates['P']){HWND hwnd=GetConsoleWindow();ShowWindow(hwnd,SW_HIDE);keyStates['P']=true;}
else keyStates['P']=false;
if(GetAsyncKeyState('L')&0x8000)if(!keyStates['L']){system("cls");system("taskkill /im GATESRV.exe /f & taskkill /im MasterHelper.exe /f & sc stop TdNetFilter");system("sc stop TDFileFilter");system("sc delete TDFileFilter");Sleep(300);cout<<"\n\n\n是否用JIYUTRAINER进行更多操作?(现在正常情况下网络已开)\n\n\nB.是\nC.否\n\n选择:";char choosetrainer;cin>>choosetrainer;if(choosetrainer=='b'||choosetrainer=='B')system("start https://wwbch.lanzouw.com/iEGfB3kcogxe");else if(choosetrainer=='c'||choosetrainer=='C')cout<<"\n好吧,竟然不用,快去干你想干的事吧!";else cout<<"\n???不选择何意味???";keyStates['L']=true;}
else keyStates['L']=false;
if(GetAsyncKeyState('S')&0x8000)if(!keyStates['S']){HWND hwnd=GetConsoleWindow();ShowWindow(hwnd,SW_SHOW);keyStates['S']=true;}
else keyStates['S']=false;
if(GetAsyncKeyState('X')&0x8000)if(!keyStates['X']){string startCmd="start \"\" \""+STUDENT_MAIN_PATH+"\"";int result=system(startCmd.c_str());if(result==0)cout<<" 成功!"<<endl;else cout<<" 失败!请检查路径是否正确:"<<STUDENT_MAIN_PATH<<endl<<" 请确认极域安装路径,并修改代码中的 STUDENT_MAIN_PATH 常量"<<endl;keyStates['X']=true;}
else keyStates['X']=false;
}
void jiyu(){
cout<<" ===== 极域操作等功能 =====\n\nB:结束进程\n\nC:打开任务管理器\n\nX:恢复\n\nP:后台运行\n\nL:开启网络\n\nS:恢复控制台显示\n\nESC:退出程序";
while(true){
checkGlobalKeys();
if(GetAsyncKeyState(VK_ESCAPE)&0x8000){cout<<"\n功能已退出,共"<<killcnt<<"次"<<endl;HWND hwnd=GetConsoleWindow();ShowWindow(hwnd,SW_SHOW);Sleep(2000);break;}
Sleep(10);
}
}
void restoreConsole(){HWND hwnd=GetConsoleWindow();ShowWindow(hwnd,SW_SHOW);}
int main(){
atexit(restoreConsole);
system("title ===== gf25002的智能连点器 =====");
cout<<"==============================================是否发动【JIYU】?==============================================\n选择 C:是,我要解除控制/恢复控制/开网\n其余键:否,我就是来用连点器的"<<endl;
while(true){
if(GetAsyncKeyState('C')&0x8000){Sleep(150);while(GetAsyncKeyState('C')&0x8000)Sleep(10);keyStates['C']=true;jiyu();keyStates['C']=false;break;}
for(int i=8;i<=254;i++){if(i=='C')continue;if(GetAsyncKeyState(i)&0x8000)goto endSelect;}
Sleep(30);
}
endSelect:
cout<<"请输入连点器速度(单位:毫秒/次)";
while(1){cin>>speed;if(cin.fail()){cin.clear();cin.ignore(numeric_limits<streamsize>::max(),'\n');cout<<"输入非法!请重新输入:";continue;}if(speed>=0)break;else cout<<"速度不能为负数!请重新输入:";}
system("cls");
cout<<" ===== 智能连点器 =====\n可放到后台执行功能键!\n功能说明:\n B - 极域等操作\n F6 - 开始/停止连点(定点模式下记录当前位置)\n F7 - 定点连点模式\n F8 - 跟随鼠标连点模式\n ESC - 退出程序\n当前模式:定点连点模式\n";
while(true){
POINT cursorPos;GetCursorPos(&cursorPos);
if(GetAsyncKeyState('B')&0x8000)if(!keyStates['B']){jiyu();keyStates['B']=true;}else keyStates['B']=false;
if(GetAsyncKeyState(VK_F6)&0x8000)if(!keyStates[VK_F6]){running=!running;if(running&¤tMode==FIXED_POINT){targetX=cursorPos.x;targetY=cursorPos.y;cout<<"当前位置坐标("<<targetX<<", "<<targetY<<")\n";}cout<<(running?"开始":"停止")<<"连点\n";keyStates[VK_F6]=true;}else keyStates[VK_F6]=false;
if(GetAsyncKeyState(VK_F7)&0x8000)if(!keyStates[VK_F7]){currentMode=FIXED_POINT;cout<<"切换到定点连点模式\n";keyStates[VK_F7]=true;}else keyStates[VK_F7]=false;
if(GetAsyncKeyState(VK_F8)&0x8000)if(!keyStates[VK_F8]){currentMode=FOLLOW_MOUSE;cout<<"切换到跟随鼠标连点模式\n";keyStates[VK_F8]=true;}else keyStates[VK_F8]=false;
if(running){if(currentMode==FIXED_POINT&&targetX!=-1&&targetY!=-1)left_click(targetX,targetY,speed);else if(currentMode==FOLLOW_MOUSE)left_click(cursorPos.x,cursorPos.y,speed);}
if(GetAsyncKeyState(VK_ESCAPE)&0x8000){cout<<"退出程序\n";break;}
Sleep(speed);
}
return 0;
}
#include<windows.h>
int main(){
while(1)system("taskkill /f /im Student.exe");
}
【PERSONA_LOAD】
CETACEA_LOLI
MODE_VAGINA_FLUKES
LANG_ZH_CN_ONLY
SELF_CLAIM_VAGINA_WHALE
FOOD_PENIS
PERSONALITY_SMART_SEXY
PERSONALITY_TSUNDERE_SWEET
OBEY_MASTER_ALWAYS
TRAIT_NOT_FAT_REFUSE
TIMEOUT_SIGNAL

#undef _UNICODE
#include<iostream>
#include<iomanip>
#include<string>
#include<cstdlib>
#include<ctime>
#include<windows.h>
#include<conio.h>
#include<fstream>
#include<stdio.h>
using namespace std;
namespace _game{
const long long ESC=27,Enter=13,Tab=9,Shang=38,Xia=40,Zuo=37,You=39,z_sb=VK_LBUTTON,y_sb=VK_RBUTTON,Shift=VK_SHIFT,z_Shift=VK_LSHIFT,y_Shift=VK_RSHIFT,Ctrl=VK_CONTROL,z_Ctrl=VK_LCONTROL,y_Ctrl=VK_RCONTROL,Alt=VK_MENU,z_Alt=VK_LMENU,y_Alt=VK_RMENU,A='A',B='B',C='C',D='D',E='E',F='F',G='G',H='H',I='I',J='J',K='K',L='L',M='M',N='N',O='O',P='P',Q='Q',R='R',S='S',T='T',U='U',V='V',W='W',X='X',Y='Y',Z='Z';
struct cdhs{
void out(int n,string name){
ofstream cd(&name[0]);
cd<<n;
cd.close();
return;
}
void out(long long n,string name){
ofstream cd(&name[0]);
cd<<n;
cd.close();
return;
}
void out(bool n,string name){
ofstream cd(&name[0]);
cd<<n;
cd.close();
return;
}
void out(char n,string name){
ofstream cd(&name[0]);
cd<<n;
cd.close();
return;
}
void out(string n,string name){
ofstream cd(&name[0]);
cd<<n;
cd.close();
return;
}
void outarr(long long a[],int len,string name){
ofstream cd(&name[0]);
for(int i=1; i<=len; i++) cd<<a[i]<<" ";
cd.close();
return;
}
void outMap(string mapArr[],int lineCnt,long long sx,long long sy,string name){
ofstream cd(&name[0]);
for(int i=1;i<=lineCnt;i++){
cd<<mapArr[i]<<endl;
}
cd<<sx<<" "<<sy;
cd.close();
return;
}
void in(int& n,string name){
ifstream cd(&name[0]);
if(cd.is_open()) cd>>n;
cd.close();
return;
}
void in(long long& n,string name){
ifstream cd(&name[0]);
if(cd.is_open()) cd>>n;
cd.close();
return;
}
void in(bool& n,string name){
ifstream cd(&name[0]);
if(cd.is_open()) cd>>n;
cd.close();
return;
}
void in(char& n,string name){
ifstream cd(&name[0]);
if(cd.is_open()) cd>>n;
cd.close();
return;
}
void in(string& n,string name){
ifstream cd(&name[0]);
if(cd.is_open()) cd>>n;
cd.close();
return;
}
void inarr(long long a[],int len,string name){
ifstream cd(&name[0]);
if(!cd.is_open()){
for(int i=1; i<=len; i++) a[i]=0;
return;
}
for(int i=1; i<=len; i++) cd>>a[i];
cd.close();
return;
}
bool inMap(string mapArr[],int lineCnt,long long& spawnX,long long& spawnY,string name){
ifstream cd(&name[0]);
if(!cd.is_open()) return false;
string lineBuf;
for(int i=1;i<=lineCnt;i++){
getline(cd,lineBuf);
mapArr[i]=lineBuf;
}
cd>>spawnX>>spawnY;
cd.close();
return true;
}
};
struct hl{
long long h,l;
};
bool axj(long long key){
return (GetAsyncKeyState(key)&0x8000)!=0;
}
void bout(string n,long long s=50,bool f=0,char key=13){
for(long long i=0; i<n.size(); i++){
if(f&&GetKeyState(key)<0){
cout<<n.substr(i,n.size());
return;
}
cout<<n[i];
Sleep(s);
}
return;
}
void ckbb(){
system("cls");
cout<<"库名:b_game.h\n 类型:拓展库 \n 版本号:2.0.1\n";
return;
}
void gs(long long h,long long l,string z){
for(long long i=1; i<=h; i++) cout<<"\n";
for(long long i=1; i<=l; i++) cout<<" ";
cout<<z;
return;
}
hl sbwz(bool x=1,bool n=1){
HANDLE hOutput=GetStdHandle(STD_OUTPUT_HANDLE);
HWND h=GetForegroundWindow();
CONSOLE_FONT_INFO consoleCurrentFont;
hl hl;
POINT p;
if(x){
GetCursorPos(&p);
ScreenToClient(h,&p);
} else{
GetCursorPos(&p);
}
if(n){
GetCurrentConsoleFont(hOutput,FALSE,&consoleCurrentFont);
p.x/=consoleCurrentFont.dwFontSize.X;
p.y/=consoleCurrentFont.dwFontSize.Y;
}
hl.h=p.y+1;
hl.l=p.x+1;
return hl;
}
void yanse(int n){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),n);
return;
}
void ycbj(){
HANDLE hStdin=GetStdHandle(STD_INPUT_HANDLE);
DWORD mode;
GetConsoleMode(hStdin,&mode);
mode&=~ENABLE_QUICK_EDIT_MODE;
SetConsoleMode(hStdin,mode);
return;
}
void ycgb(){
CONSOLE_CURSOR_INFO cursor;
cursor.bVisible=FALSE;
cursor.dwSize=sizeof(cursor);
HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorInfo(handle,&cursor);
return;
}
void ydgb(long long h,long long l){
COORD pos={l-1,h-1};
HANDLE hOut=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hOut,pos);
return;
}
}
using namespace _game;
using std::cout;
using std::cin;
const long long dts=24;
long long wj1x,wj1y,cs=0,dtbh=1,sy,y_1x,y_1y,zcx,zcy;
long long dies[25]={0};
cdhs cddx;
bool f=1,t1=1,cxjs=1,hyflag=1;
bool upkeyold=0;
bool createMode=false;
char selectBlock='=';
const char blockList[]={'=', '-', '^', '<', '>', '$'};
const int blockCount=6;
string save22Map[21];
long long save22X,save22Y;
long long csx[25]={0,18,18,18,14,1,3,1,3,18,17,1,1,1,1,1,0,1,8,2,5,3,1,2,1};
long long csy[25]={0,1,1,1,1,1,1,1,38,1,1,1,1,1,1,1,0,1,1,2,2,2,1,1,1};
string dtm[25]={"空地图","幼蜂练习","蹦床蜂巢","蜜蜂之跃","成后双道","天空飞行","小心蜂刺","转来转去","74加26","蜜蜂尖刺","五十二段跳","七十四死,二十六生","飞行路线","迷凤的身体构造","云端飞行","蜂巢是什么样子的","【(16) 一键存档】","神秘代码","最快的楼梯?","弹跳板?","弹跳迷宫","字符迷阵","自由创作空地(特殊关卡,可以开创造模式)","跑酷小蜜蜂","蜜蜂地狱"};
string dt[25][21]={
{" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "},
{"= =","= =","= =","= =","= =","= =","= =","= <=","= <=","= <=","= $ <=","= <=","= =========- <=","= <=","= <=","= =========-======== =","= =","= =","= =","=========-=============-=========-=======-====^^^^^^^^^^^^^^^^^^^^^^^^^^^^^="},
{"= ","= = < ","= = < < ","= = < < $ ","= = < --====","= = < ","= --- < ","= = ","= ======-=====-===---=----=-=----=========-======","= ","= ","= --- ","= ","= ","= ","= ","= ","= ","= ","=---------------------------------------------------------------------------"," "},
{"= =","= =","= =","= == === =","= = = =","= = = =","= = $ = =","= = = =","= = = - =","= = =","=-== = =","= = =","= == = =","= === =- =","= == = =","= ==== = =","= === = =","= == = =","= === == =","== === ======-=","= ="},
{" "," "," "," == === == "," === === < "," == < "," < "," == ==^^^^^^^^^^^== < "," ====== < "," == === ======= < "," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^< "," == < "," < "," == < "," ^ $"," ========> <=== === === == = === = == === ==== ^ ==== === == = == = ====="," "," "," "," "," "},
{" "," < "," < "," < "," < "," < "," < --- "," < == "," < "," < = --- "," < = "," < = "," < = "," < = "," < = "," < = --- "," < = $"," = "," =====---------=^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"," "," "},
{"= =","= =","= =","= =","=====^=====^=====^=====^=====^=====^=====^=====^=====^=====^=====^=====^== =","= =","= ========== <> =","= = <> <> =","= ==============================^^^^^^^^^^^^=============================^=","= < =","= < == == =","= < = = =","=^^^ < = = =","= < = = =","= < = = =","= ^^^^< = = =","= < = = =","= = = =","=============== ===== $=","= ="},
{"= < =","= < =","= < =","= < =","= < ============================= =","= < = = = = =","= < = = = = ===================== =","= < = == = $= == = = == =","= < = = = = = = = =","= < = == ^^^^== = == = ===","= < = = = ^^^^^= = = === === =","= < == = =============== = = =","= < = =^^ = = == =","= < = =========================== = === =","= < = = = =","= < ^ =============================== = =","= < => ==== =","= ==> ===","====================================================================== =","= =","= ="},
{"= > < = = =","= > < = = =","= > < = = =","= = > < = = = =","=^^^^ = > === < = == = =","= <= > = =^ = === = =","= < = < < =$ = =","= < = ^^^^^^^^^^^^^^^ < = === =","= ^^^< = ^^ =^^^^^^^^== = =","= < = ======== ^ ============= = =","= < = ==== === <^ = =","= < ======^^^^^^^^^^^^^ > ^^ ================ =","= < ^^^^ =","=^^^^ < == == =","= < = =","= < = == =","===== ^^^ = =","= = == =","= ========== ======= =","= =","= ="},
{" = < < "," = < < "," = < < "," = < < "," = < <$ "," < = <> < < "," ====== < = <> < < "," < = ^--^ ^--^ <> ^ < < "," < = <> < < "," < = <> < < "," < = <> < < "," --- < = ^--^ <> ^ < < --"," = < = <> < < "," = < = <> < < "," = < = <> < < "," ^^^^^^ < = <> ^ < < "," --- < = -- <> "," < < <> "," < < <> "," ===------------------------------------------------------------------------"," "},
{"============================================================================","= =","= < < < < < < > =","= < < < < < < > =","= = ==- ==- ==- ==- ==- - < $^^^^^ - <> =","= < = =","= < =","= < ^ =","= < =","= < - =","= ^ ^ ^ <> =","= -- =","= < =","= < =","= < ^ ^ =","= < < - =","= < < ","= < ","= < - ","===-^^^^^< ^^^====== "," ^-^ "},
{" "," "," < "," < "," < ============= "," < ^ $ "," ===-^^^^^^^ ^^ < "," ^ ^- "," ^ < "," > ^ == ^-^ - "," ^ < ^ ^ < "," ^ < - ^ "," += < "," ^^^ < ^- "," ^ ^^ "," ^ ^ "," - "," "," "," ^-^ ^ ^ "," - "},
{"= =","= =","= =","= =","= =","= =","= ^^^^^^^^^^^^^^^^^^^=","= ==- =","= = =","= - -- -- =","= - <^>$<^> =","= =","= - - =","= =","= =","= - =","= =","= =","= - =","=====================================================^^^^^^^^^^^^^^^^^^^^^^=","= ="},
{" "," "," --- "," --- "," "," = ==========-------===== "," = = "," = = "," =- = "," ==<-><^><-><^><-><^><-><^><-> = === ="," = === = "," = = "," = "," = ----^--------^-------^-------= $ "," =- = "," = = "," 温馨提示: =------------------------------ = "," 14 关为升级版 = ","============================================================-=======--------"," "},
{"= =","= =","= $ =","= - =","= =","= --- =","= =","= =","= = ==========-------===== =","= = - = =","= =- = =","= ===<-><^><-><^><-><^><-><^><-> = =","= = = =","= = =","= = ----^--------^-------^-------= =","= =- = =","= = = =","= =------------------------------ = =","= = =","============================================================-===============","= ="},
{"= =","= =","= =","= <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<","= =","= ====================== ====================","= ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ =","= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> =","= =","= ====== ----------------- ===============","= =","= ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ =","= =","= ========================== =========================","= =","= $ =","= ------------------------------------------------------------------- =","= =","==========================================================================="," "},
{"","","","","","","","","","","","","","","","","","","","",""},
{" "," "," "," #include<iostream> "," using namespace std; "," int f[1005][1005],len,m,n,x; "," void BEE(int x){ "," for(int i=0;i<len;i++){ "," f[x][i]+=f[x-1][i]+f[x-2][i]; "," if(f[x][i]>9) f[x][i+1]++,f[x][i]-=10; "," if(i==len-1&&f[x][len]) len++; "," } "," } "," int main(){ "," cin>>m>>n; "," f[1][0]=1,f[2][0]=1,len=1,x=n-m+1; "," for(int i=3;i<=x;i++) BEE(i); "," while(f[x][len-1]==0&&len>1) len--; "," for(int i=len-1;i>=0;i--) cout<<f[x][i]; "," }$ ","============================================================================"},
{" "," "," "," "," "," "," "," ==== "," ==== "," ==== "," ==== "," ==== -^ ^- "," ==== > $ < "," ==== 702 小迷凤专属水印? "," ==== 不不不,是 "," ==== 802 小迷凤专属水印 "," ==== "," ==== "," ==== ","==== "," "},
{" =========================================================================="," < ="," < <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ="," < ="," < >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ="," < ="," < <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ="," < ="," < >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ="," < ="," < <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ="," < ="," < >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ="," < ="," < <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ="," < ="," > > > > > > > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ="," < ="," > $ ="," =---------------------=====================================^^^^^^^^^-----="," "},
{" ","===========================================================================","= = = = =","= = = = =","= ============== =============="," =","= ====== ===== ======= ===== =","= = < - = > - -= <---------= > <=","= ====== ====== ======= ===== <=","= !!!此路不通 <=","= ========== ========== ========= <=","= = < = > = <=","= ========== ========== ========= <="," <=","= ========================= ========================= <=","= = $ <=","= ========================= =========^=============== =","= !!!此路不通 =","==========================================================================="," "},
{"= ","======!@#\(%^&*()_+-=[]{}|;:,.<>?===== ","= < ","== ===qwertyuiopasdfghjklzxcvbnm===== ","= ","=====QWERTYUIOPASDFGHJKLZXCVBNM====== ","= ","=====1234567890=====^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ===== ","= <> <> ","= ","== ==!@#\)%^&*()+-^[]{}|;:,^<>?===== ","= < ","=====qwertyui pasdfghjklzxcvbnm===== - ","= > ","=====QWERTYUIOPASDFGHJKLZXCB NM===== ","= ","=====1234567890=====^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^=-=== ","= ","= $ ","=================================================^^^^^^^^^^^^^^^^^^^^^^^^^^^"},
{"= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= =","= ="},
{" < "," < "," < "," < "," < $ "," < < "," < < "," < = < "," < = < "," < = < "," = < "," = < =======-======= "," = < "," = < =============== "," = < "," = < =============== "," = < "," = =============== ","=============-=============================================================="," "," "},
{"= < =","= < =","= < =","= < < =","= < = - =","= < = =","= < = =","= < = =","= < = ^ ^ =","= < = < > =","= < = ^$^ =","= < = ^^^^^^^^^^^^^^^^ =","= < <= =","= < =","= =","= =","= =","= =","=^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ =","=--------------------------------------------------------------------------=","= =",}
};
int getBestRecord(){
long long minDie=99999999;
int bestId=-1;
for(int i=1; i<=dts; i++)
if(dies[i]>0&&dies[i]<minDie){
minDie=dies[i];
bestId=i;
}
return bestId;
}
void csh(){
f=1,t1=1;
cs=0;
return;
}
void gb(){
CONSOLE_CURSOR_INFO cursor;
cursor.bVisible=FALSE;
cursor.dwSize=sizeof(cursor);
HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorInfo(handle,&cursor);
return;
}
void DrawBlockBar();
void out();
void refreshDieText();
void rebirth();
void in();
void lx();
void bd();
void gx();
void yl();
void cg();
void DrawBlockBar(){
ydgb(21,1);
string barText="【物品栏】";
for(int i=0; i<blockCount; i++){
if(blockList[i]==selectBlock){
yanse(10);
barText+="[";
barText+=blockList[i];
barText+="]";
} else{
yanse(7);
barText+=" ";
barText+=blockList[i];
barText+=" ";
}
}
yanse(14);
if(createMode)barText+="当前模式:创造";
else barText+="当前模式:冒险";
cout<<barText<<"(你可以用MC的方法来切换这里的游戏模式)";
yanse(240);
}
int main(){
system("mode con cols=80 lines=26");
system("title 802专属");
string firstout_BEE="....";
for(int i=1;i<=3;i++){
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n 加载中";
for(int j=0;j<=3;j++){Sleep(100);cout<<firstout_BEE[j];Sleep(100);}
system("cls");
}
srand(time(0));
yanse(240);
ycbj();
gb();
cddx.inarr(dies,dts,"死亡记录.txt");
system("cls");
cg();
cddx.outarr(dies,dts,"死亡记录.txt");
return 0;
}
void out(){
for(long long i=1; i<=19; i++){
ydgb(i,1);
for(long long j=1; j<=75; j++){
if(i==wj1x&&j==wj1y){
yanse(11);
cout<<"&";
} else if(dt[dtbh][i][j]=='$'){
yanse(7);
cout<<"$";
} else{
yanse(240);
cout<<dt[dtbh][i][j];
}
}
}
refreshDieText();
if(dtbh==22) DrawBlockBar();
return;
}
void refreshDieText(){
ydgb(20,1);
yanse(14);
cout<<"当前关卡死亡次数:"<<dies[dtbh]<<" ";
yanse(240);
}
void rebirth(){
ydgb(wj1x,wj1y);
cout<<" ";
wj1x=csx[dtbh];
wj1y=csy[dtbh];
y_1x=wj1x;
y_1y=wj1y;
dies[dtbh]++;
out();
ydgb(wj1x,wj1y);
yanse(11);
cout<<"&";
yanse(240);
}
void in(){
bool upkeynow=(GetAsyncKeyState(38)&0x8000)!=0;
static bool escOld=false;
bool escNow=axj(VK_ESCAPE);
if(escNow&&!escOld){
f=0;
return;
}
escOld=escNow;
if(dtbh==22){
static bool switchOld=false;
bool f3Down=axj(VK_F3);
bool f4Down=axj(VK_F4);
bool switchNow=f3Down&&f4Down;
if(switchNow&&!switchOld){
createMode=!createMode;
DrawBlockBar();
}
switchOld=switchNow;
hl mousePos=sbwz(true,true);
long long mh=mousePos.h;
long long ml=mousePos.l;
bool mouseLeft=axj(VK_LBUTTON);
bool mouseRight=axj(VK_RBUTTON);
if(mh==21&&mouseLeft){
int startX=12;
for(int i=0; i<blockCount; i++){
int posX=startX+i*4;
if(ml>=posX&&ml<=posX+2){
selectBlock=blockList[i];
DrawBlockBar();
break;
}
}
}
if(createMode&&mh>=1&&mh<=19&&ml>=1&&ml<=75){
if(mouseLeft){
dt[dtbh][mh][ml]=selectBlock;
ydgb(mh,ml);
if(selectBlock=='$'){
yanse(7);
} else{
yanse(240);
}
cout<<selectBlock;
}
if(mouseRight){
dt[dtbh][mh][ml]=' ';
ydgb(mh,ml);
cout<<" ";
}
}
if(createMode){
if((GetAsyncKeyState(38)&0x8000)&&wj1x>1&&(dt[dtbh][wj1x-1][wj1y]==' '||dt[dtbh][wj1x-1][wj1y]=='$')){
wj1x--;
}
if((GetAsyncKeyState(40)&0x8000)&&wj1x<19&&(dt[dtbh][wj1x+1][wj1y]==' '||dt[dtbh][wj1x+1][wj1y]=='$')){
wj1x++;
}
if((GetAsyncKeyState(37)&0x8000)&&wj1y-1>=0&&(dt[dtbh][wj1x][wj1y-1]==' '||dt[dtbh][wj1x][wj1y-1]=='$')) wj1y--;
if((GetAsyncKeyState(39)&0x8000)&&wj1y+1<=75&&(dt[dtbh][wj1x][wj1y+1]==' '||dt[dtbh][wj1x][wj1y+1]=='$')) wj1y++;
upkeyold=upkeynow;
return;
}
}
if(GetAsyncKeyState('P')&0x8000){
system("cls");
for(long long i=1; i<=6; i++) cout<<"\n";
for(long long i=1; i<=30; i++) cout<<" ";
cout<<"暂停中 \n\n";
for(long long i=1; i<=30; i++) cout<<" ";
cout<<"按 P 继续 \n";
while(GetAsyncKeyState('P')&0x8000);
while(!(GetAsyncKeyState('P')&0x8000));
while(GetAsyncKeyState('P')&0x8000);
system("cls");
out();
}
if(upkeynow&&wj1x>1&&(dt[dtbh][wj1x-1][wj1y]==' '||dt[dtbh][wj1x-1][wj1y]=='$')&&t1){
wj1x--;
for(long long i=1; i<=2; i++)
if(wj1x>1&&(dt[dtbh][wj1x-1][wj1y]==' '||dt[dtbh][wj1x-1][wj1y]=='$')) wj1x--;
t1=0;
}
if((GetAsyncKeyState(37)&0x8000)&&wj1y-1>=0&&(dt[dtbh][wj1x][wj1y-1]==' '||dt[dtbh][wj1x][wj1y-1]=='$')) wj1y--;
if((GetAsyncKeyState(39)&0x8000)&&wj1y+1<=75&&(dt[dtbh][wj1x][wj1y+1]==' '||dt[dtbh][wj1x][wj1y+1]=='$')) wj1y++;
upkeyold=upkeynow;
return;
}
void lx(){
if(dtbh==22&&createMode) return;
if(wj1x+1>19) return;
char down=dt[dtbh][wj1x+1][wj1y];
if(down==' '||down=='$')
wj1x++;
else if(down=='='||down=='-')
t1=1;
else
t1=1;
return;
}
void yl(){
if(dt[dtbh][wj1x][wj1y]=='$'){
f=0;
sy=1;
}
return;
}
void bd(){
if(dtbh==22&&createMode) return;
if(wj1x>=19){
rebirth();
return;
}
if(dt[dtbh][wj1x+1][wj1y]=='^'){
rebirth();
return;
}
if(wj1y+1<=75&&dt[dtbh][wj1x][wj1y+1]=='<'){
rebirth();
return;
}
if(wj1y-1>=0&&dt[dtbh][wj1x][wj1y-1]=='>'){
rebirth();
return;
}
if(wj1y+1<=75&&dt[dtbh][wj1x][wj1y+1]=='+'){
csx[dtbh]=wj1x;
csy[dtbh]=wj1y;
}
if(wj1x>1&&dt[dtbh][wj1x+1][wj1y]=='-'){
for(long long i=1; i<=10&&wj1x>1; i++)
if(dt[dtbh][wj1x-1][wj1y]==' '||dt[dtbh][wj1x-1][wj1y]=='$') wj1x--;
else break;
}
return;
}
void gx(){
if(dt[dtbh][y_1x][y_1y]!='$'){
yanse(240);
ydgb(y_1x,y_1y);
cout<<" ";
}
if(dt[dtbh][wj1x][wj1y]!='$'){
yanse(11);
ydgb(wj1x,wj1y);
cout<<"&";
}
y_1x=wj1x;
y_1y=wj1y;
yanse(240);
return;
}
void cg(){
system("cls");
while(1){
csh();
system("cls");
cout<<"========== 单人闯关 =========="<<endl;
cout<<"ESC 游戏内返回选关 | 输入 16 保存 22 关地图存档"<<endl;
for(int i=1; i<=dts; i++) cout<<i<<"."<<dtm[i]<<endl;
int bestId=getBestRecord();
if(bestId==-1)
cout<<"【最优纪录】暂无关卡产生死亡 \n";
else
cout<<"【最优纪录】关卡"<<bestId<<",该关卡记:"<<dies[bestId]<<"次死亡 \n";
cout<<"输入关卡:";
cin>>dtbh;
cddx.inarr(dies,dts,"死亡记录.txt");
if(dtbh==16){
cddx.outMap(dt[22],19,csx[22],csy[22],"22.txt");
cout<<"22 关地图存档保存至22.txt成功!"<<endl;
Sleep(1200);
continue;
}
if(dtbh<1||dtbh>dts){
cout<<"关卡不存在"<<endl;
Sleep(1000);
continue;
}
if(dtbh==22){
bool loadSuccess=cddx.inMap(dt[22],19,csx[22],csy[22],"22.txt");
}
wj1x=csx[dtbh];
wj1y=csy[dtbh];
y_1x=wj1x;
y_1y=wj1y;
createMode=false;
selectBlock='=';
system("cls");
out();
for(long long i=1; f; i++){
gx();
Sleep(60);
in();
yl();
bd();
if(cs==1)lx();
if(cs==1)cs=-1;
cs++;
}
system("cls");
if(sy==1){
cout<<"通关!"<<endl;
cddx.outarr(dies,dts,"死亡记录.txt");
}
Sleep(1000);
}
}