Problem 123789456 >> 对@zhaodongqiang的忠告 |
zhangxuanzhen @ 2024-07-05 18:30:32
我刚给给你发消息是我上课下课了,我为你在不在是准备和你玩不是让你来
|
zhangxuanzhen @ 2024-07-05 18:31:19
还有你那么喜欢TM就和TM**吧
|
zhangxuanzhen @ 2024-07-05 18:31:45
#include<bits/stdc++.h>
#include<windows.h> using namespace std; string s; void zh(string s){ for(int i=0;i<s.size();i++){ if(s[i]==' '){ cout<<' '; system("color 96"); } else{ cout<<s[i]; system("color 96"); Sleep(10); } } } char a[40][80]; int main(){ s=" advice"; zh(s); cout<<endl<<endl; s="Resist bad games and reject pirated games."; zh(s); cout<<endl<<endl; s="Pay attention to your own protection and beware of being deceived."; zh(s); cout<<endl<<endl; s="Moderate games are good for the brain, and addiction to games hurts the body."; zh(s); cout<<endl<<endl; s="Organize your time wisely and enjoy a healthy life."; zh(s); Sleep(4000); system("cls"); s="Did you finish reading it?(Y/N)"; zh(s); char c; cin>>c; if(c=='N'){ s="Go to hell!"; zh(s); Sleep(2000); } cout<<endl; system("cls"); s="Catching Prisoners (Beta 1.0)"; zh(s); cout<<endl<<endl; s="If there is any error, please point out, without the permission of the author, it is forbidden to reprint, otherwise you will bear the consequences."; zh(s); Sleep(4000); system("cls"); s="Welcome to the arena where your mission is to defeat all the prisoners."; zh(s); Sleep(4000); system("cls"); s="Let's go!"; zh(s); Sleep(2000); system("cls"); s="Before that, you can check the instructions(Letters must be capitalized).(Y/N)"; zh(s); cin>>c; if(c=='Y'){ system("cls"); s="You are a police officer, you have a knife, you can go to him, press the 'P' key to get that prisoner* off, you can w/a/s/d to move, note that your strength is limited, but when you defeat a prisoner, you can regain your strength. Attack once with a force of five points, go with a force of two points, the initial fifty points, when your strength is less than five, you can press the 'Q' key will be 20 HP, only three times."; zh(s); Sleep(20000); } system("cls"); srand(time(NULL)); int a1 = rand()%5+2; int b1 = rand()%20+2; int a2 = rand()%10+2; int b2 = rand()%30+2; int a3 = rand()%15+2; int b3 = rand()%40+2; int a4 = rand()%20+2; int b4 = rand()%50+2; int a5 = rand()%25+2; int b5 = rand()%60+2; int a6 = rand()%30+2; int b6 = rand()%60+2; for(int i=1;i<=35;i++){ for(int j=1;j<=60;j++){ if(i==a1&&j==b1){ a[i][j] = '$'; }else if(i==a2&&j==b2){ a[i][j] = '$'; }else if(i==a3&&j==b3){ a[i][j] = '$'; }else if(i==a4&&j==b4){ a[i][j] = '$'; }else if(i==a5&&j==b5){ a[i][j] = '$'; }else if(i==a6&&j==b6){ a[i][j] = '$'; }else{ a[i][j]= ' '; } } } for(int i=1;i<=35;i++){ for(int j=1;j<=60;j++){ if(i==1&&j==1){ cout<<'#'; }else{ cout<<a[i][j]; } } cout<<endl; } int sum = 6; int i=1; int j=1; while(sum!=0){ cin>>c; if(c=='w'&&i-1!=0){ i--; }else if(c=='s'&&i+1!=36){ i++; }else if(c=='d'&&j+1!=61){ j++; }else if(c=='a'&&j-1!=0){ j--; } for(int o=1;o<=35;o++){ for(int p=1;p<=60;p++){ if(i==o&&j==p){ cout<<'#'; }else{ cout<<a[o][p]; } } cout<<endl; } } return 0; } |
zhangxuanzhen @ 2024-07-05 18:31:59
又改了一下
|
zhangxuanzhen @ 2024-07-05 18:32:26
开场白OK了,内容还在赶
|
zhangxuanzhen @ 2024-07-05 18:34:40
不是你游戏搞那么多头文件干嘛
|
zhangxuanzhen @ 2024-07-05 18:38:37
我觉得应该叫Hengyuan&Daming Office
|
zhaodongqiang @ 2024-07-06 10:16:21
e
|
zhaodongqiang @ 2024-07-06 10:18:03
不是那内容需要那么多头文件
|
zhaodongqiang @ 2024-07-06 10:19:40
明天上午我去校区,你去吗
|
zhaodongqiang @ 2024-07-06 10:19:51
下午我也去
|
zhaodongqiang @ 2024-07-06 10:22:13
@zhanxuanzhen
|
zhaodongqiang @ 2024-07-07 11:13:21
不是你做的游戏怎么还全英文的
|
zhaodongqiang @ 2024-07-07 11:15:23
在说了,谁喜欢TM了
|