#include <windows.h>
#include "stdafx.h"
#include "math.h"
#include <stdio.h>
#include <conio.h>
#include <time.h>
#define MAX 4
#define Blockn 7
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
int GameArea[11][23];
int NextArea[MAX][MAX];
int TimeElapsed = 0,TimeElapsed2; //1是陣列用計時器 2是 pixel值用計時器
//int block[MAX][MAX];
//int i = 3,j = 2; //GameArea陣列座標引述
int blockx = 103,blocky = 111; // x和y的 pixel值 下降時處理用
int bottonline[] = {747,747,747,747,747,747,747,747,747,747,747}; //每一行的底界
int H = 23,W = 11; //畫面長寬, 方塊數目
bool bExit = false; //是否持續遊戲
int level=0, score=0; //關卡, 積分
int ox=13, oy=57; //畫面左上原點
int B, N; //當前&下一個 方塊的編號
int X, Y, dir=0; //方塊位置, 所處方位(0~3)
int delay_time = 1000; //延遲時間
int block[Blockn][4] = //方塊樣式
{{0x6220,0x1700,0x2230,0x0740}, // L
{0x6440,0x0e20,0x44c0,0x8e00}, // _|
{0x04e0,0x0464,0x00e4,0x04c4}, // T
{0x4620,0x6c00,0x4620,0x6c00}, // z
{0x2640,0xc600,0x2640,0xc600}, // 反z
{0x0f00,0x4444,0x0f00,0x4444}, // |
{0x0660,0x0660,0x0660,0x0660}}; // 田









