C++的移动游戏第一版,想要中文版的在评论区里和我说!
#include<iostream>
#include<string>
#include<windows.h>
#include<cstdlib>
#include<time.h>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;
class display{
public:
void JC();
void game_page();
};
string G_name=" Mobile Code_t",map[21][31];
void Initialization();
void ShowCursor(bool visible){
CONSOLE_CURSOR_INFO cursor_info={20,visible};
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);
}
void gotoxy(int x,int y){
int xx=0x0b;
HANDLE hOutput;
COORD loc;
loc.X=x;
loc.Y=y;
hOutput=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hOutput,loc);
}
void creation_move(){
display d;
int x=1,y=1;
Initialization();
system("cls");
system("color 8");
while(1){
if(KEY_DOWN('N')){
d.game_page();