91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡(jiǎn)介

簡(jiǎn)單的控制臺(tái)游戲

資源截圖

代碼片段和文件信息

#include?
#include?
#include?
#include?

void?HideCursor();
void?gotoxy(int?x?int?y);
void?DrawPicture();
void?UpdataWithInput();
void?UpdataWithoutInput();
void?StartGame();

//?全局變量
const?int?num?=?5;??//?子彈數(shù)
const?int?difficulty?=?3;??//?游戲難度??0-5
int?position_x?position_y;??//?飛機(jī)位置
int?enemy_x?enemy_y;??//?敵機(jī)位置
int?high?width;??//?游戲畫(huà)面尺寸
int?score;??//?得分
int?currentBullet;??//?當(dāng)前子彈數(shù)??
bool?isFire;??//?是否開(kāi)火

int?sleep;
struct?Bullet?{????//??保存子彈坐標(biāo)
int?x;
int?y;
};
struct?Bullet?bullet[num];

int?main()
{
StartGame();
while?(1)
{
DrawPicture();
UpdataWithInput();
UpdataWithoutInput();
}
return?0;
}

void?StartGame()
{
HideCursor();
//system(“color?6“);
isFire?=?false;
score?=?0;

評(píng)論

共有 條評(píng)論

相關(guān)資源