#include “…\Frame\Frame.h”
#include “vector2.h”
#include"game_input.h"
#include<math.h>
#include<Windows.h>
#include
#include<time.h>
struct QIZI
{
Vector2 qi ;
int color ;
};
struct WEIZHI
{
Vector2 weizhi ;
bool kong ;
};
struct WIN
{
bool win ;
bool heizi ;
};
WIN W_win;
int map[1919] = {} ;
std::vector qizi ;
std::vector W_zhi ;
bool heizi = false;
int dirx[8]={-1,-1,0,1,1,1,0,-1};
int diry[8]={0,-1,-1,-1,0,1,1,1};
void GameInit()
{
GameFrame frame = GameFrame::GetFrame();
CGameAudio* audio = frame->GetAudio();
for(int y = 100 ; y <= 460 ; y += 20)
{
for(int x = 300 ; x <= 660 ; x += 20)
{
Vector2 k(x,y);
WEIZHI hao ;
hao.weizhi = k ;
hao.kong = true ;
W_zhi.push_back(hao);
}
}
W_win.win = false ;
W_win