if(!R.is_open)
TP(0,0,OC,"ERROR");
string str;
R>>str;
if(str.length){
num=0;
for(int i=0;i<int(str.length);i++)
if(isdigit(str[i]))
num=num*10ll+str[i]-\'0\';
}
R.close;
/*unlock*/
MaxScore=(((num-52)/100*2+1314)/38+2)/18;
TP(WINDOWC/2-2,(WINDOWW+40-10)/2,fred+flight+bblack,"Game Over!");
TP(WINDOWC/2-1,(WINDOWW+40-15)/2,OC,"Your score: ");
gto(WINDOWC/2-1,(WINDOWW+40-15)/2+12),color(OC),printf("%08lld",Own.Score+Own.BossScore);
TP(WINDOWC/2,(WINDOWW+40-15)/2,OC,"MaxScore: ");
gto(WINDOWC/2,(WINDOWW+40-15)/2+12),color(OC),printf("%08lld",max(Own.Score+Own.BossScore,MaxScore));
if(Own.Score+Own.BossScore>MaxScore){
TP(WINDOWC/2+1,(WINDOWW+40-15)/2+2,fred+flight+bblack,"(Refreshed!)"),MaxScore=Own.Score+Own.BossScore;
/*lock*/
num=((MaxScore*18-2)*38-1314)/2*100+52;
string New;
for(int i=1;i<=30;i++){
if(rand%2)
New+=CHART[rand()%10];
else if(num)
New+=num%10+\'0\',num/=10;
}
while(num)
New+=num%10+\'0\',num/=10;
while(New.length<30)
New+=CHART[rand()%10];
reverse(New.begin,New.end);
fstream CLEAR("./MaxScore.sc", ios::trunc);
CLEAR.close;
ofstream T("./MaxScore.sc");
if(!T.is_open)
TP(0,0,OC,"ERROR");
T<<New;
T.close;
}
TP(WINDOWC/2+2,(WINDOWW+40-15)/2-3,OC,"(Press any key to exit)");
getch;
gto(WINDOWC/2+4,0),exit(0);
}
bool isHit(int,int,int);
void MoveBullet(Bullet &me){
int t=clock;
if(me.LastBulletRefreshTime>=t-(100-ConstBulletSpeed[me.Type]))
return;
me.LastBulletRefreshTime=t;
int tx=me.x+me.dx,ty=me.y+me.dy;
TP(me.x,me.y,OC,\' \');
/*It runs out of the screen => erase it*/
if(tx<0||tx>=WINDOWC||ty<0||ty>=WINDOWW||isHit(tx,ty,me.Type)){
me.isExist=0;
return;
}
TP(me.x=tx,me.y=ty,ConstBulletColor[me.Type],ConstBulletShape[me.Type]);
}
#define MAX_BUFFFULLNAME_LEN 16
const int ConstBuffTipPosition[MAX_BUFF_NUM+5][2]={{0,0},{13,WINDOWW+3},{14,WINDOWW+3},{15,WINDOWW+3},{16,WINDOWW+3},{17,WINDOWW+3}};
const char ConstBuffFullName[MAX_BUFF_NUM+5][MAX_BUFFFULLNAME_LEN+5]={"","4 more bullets","recover 50 blood","more powerful","double score","shot faster"};
const int ConstMaxBuffFullNameLen[MAX_BUFF_NUM+5]={0,16,16,16,16,16};
void BuffTipRefresh{
/*
TP(12,WINDOWW+3,OC,"---------Details of Buffs---------");
TP(18,WINDOWW+3,OC,"----------------------------------");
*/
int C=fgray;
for(int i=1;i<=MAX_BUFF_NUM;i++){
TP(ConstBuffTipPosition[i][0],ConstBuffTipPosition[i][1],C,ConstBuffName[i]);
TP(ConstBuffTipPosition[i][0],ConstBuffTipPosition[i][1]+1,C,": ");
TP(ConstBuffTipPosition[i][0],ConstBuffTipPosition[i][1]+3,C+(Own.Buffs[i]?bwhite+blight:0),ConstBuffFullName[i]);
gto(ConstBuffTipPosition[i][0],ConstBuffTipPosition[i][1]+3+ConstMaxBuffFullNameLen[i]),color(C+(Own.Buffs[i]?bwhite+blight:0)),printf("[%02d S]",int(Own.Buffs[i]?(ConstBuffLastTime[i]-(clock-Own.GetBuffTime[i])+999)/1000:0));
}
}
void EnemyClear{
int tmp=UFORefreshTime;
UFORefreshTime=INF;
for(set<UFO*>::iterator it=Enemy.begin;it!=Enemy.end;it++)
(*it)->isExist=0;
UFORefresh;
UFORefreshTime=tmp;
}
double Performance;
//D C B A S
const int PerfColor[10]={fblack+bwhite,fgray+bwhite,fpurple+bwhite,fgreen+bwhite,fred+bwhite};
const char PerfLevel[10][8]={"D.","C.","B.","A!","S!!"};
struct BOSS{
/*Shape of the boss:
0000000/0000000 (x-7,y-7) to (x-7,y+7)
@@@@@@@@@@@@@@@ (x-6,y-7) to (x-6,y+7)
(OOOOOOOOOOOOOOO)
[-----------] (x-5,y-6) to (x-5,y+6)
\OOXXXOO/ (x-4,y-4) to (x-4,y+4)
+---\XXOXX/---+ (x-3,y-7) to (x-3,y+7)
V \OOO/ V (x-2,y-7) to (x-2,y+7)
\O/ (x-1,y-1) to (x-1,y+1)
V (x,y)
*/
int isExist;
int x,y;//position of the head
int dx,dy;
int Blood,FullBlood;
int ShotSpeed1,ShotSpeed2,LastShotTime1,LastShotTime2,flag2;
int MoveSpeed,LastMoveTime;
- 顺玩游戏 顺网游戏中心
- windows7网络和共享中心打不开 win7系统网络和共享中心打不开
- 森林控制台代码能给好友使用吗 森林控制台作弊码大全
- 汤尼简介 汤尼国际语言中心培训
- 广州汽车维修培训中心 广州汽车维修专业学校
- 天津流浪猫狗收容中心 天津狗狗网
- 英雄联盟头像领取中心 LOL领取头像
- 阿里巴巴将与俄罗斯出口中心联合推出俄产品对华出口项目
- 亚马逊电话 400 卓越亚马逊客服中心电话
- 12306铁路客户服务电话 全国铁路客户服务中心 12306官网
特别声明:本站内容均来自网友提供或互联网,仅供参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
