?? game_地圖.h
字號:
#include "game.h"
class gamemap : public game //繼承game類
{public: gamemap(); //構造函數
virtual~gamemap(); //析構函數
public://公有,外部可調用
HDC hScrDC0;
HDC SMAP; //小地圖設備句柄
HBITMAP mapbit; //小地圖位圖內存
CPen pen0,pen1; //白、紅畫筆句柄
short int fls; //小地圖閃爍
short int mann; //主角下標
short int mapt,mapb; //小地圖上下
short int mapl,mapr; //小地圖左右
short int mapw,maph; //小地圖高寬
short int movemap; //地圖移動否?
void initmap(); //初始化地圖參數
void exitmap(); //退出
BOOL dingweimap(int x,int y); //定位地圖
void getsmap(); //生成小地圖
void smlmap(HDC dc); //顯示小地圖
void movesmap(int x0,int y0); //移動地圖
void mlmap(); //地圖塊移動拼接
int leftdown(HDC hdc,int x,int y);//按左鍵
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -