資源簡介
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?
#include?
using?namespace?std;
//==================================================================
#define?hest?100????????????//跳的速度(點擊到最高點有?(250/hest)?秒)?
#define?mo?2000?????????????//跳的高度(每次點擊跳到最高多?(((1+hest)*hest+hest)/mo)?格)?
#define?hei?20??????????????//屏幕高度?
#define?wid?20??????????????//屏幕寬度?
#define?det?v*2-1
#define?gap?10??????????????//柱子間上下的空隙長度?
#define?len?4??????????????//柱子的寬度?
#define?T??25???????????????//柱子移動時間單位??????T?t移動一格
#define?TT?500/T????????????//柱子出現頻率????????????TT?T出現一個?
//==================================================================
void?color(int?a)//顏色函數
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE)a);
}
void?go
- 上一篇:c++ 雙人俄羅斯方塊 游戲源碼
- 下一篇:c++ 打飛機小游戲源碼可保存數據5個
評論
共有 條評論