好久没更新了,来更新一下吧。
又是一个系列,我现在感觉马上又得肝了QwQ
没打注释,有什么不懂的发在评论区,我看到了就会回。
(求关注 求点赞 求收藏)
代码
#include <Windows.h>
#include <graphics.h>
#include <time.h>
#include <cmath>
const int w = 10, h = 20;
const int dh = 15;
const int block = 30, blocktype = 7;
int score = 1;
TCHAR s[32];
bool m[w][h];
COLORREF c[w][h];
int cn, bspeed = 0;
int blockWH[blocktype][2] = { {2, 2}, {1, 4}, {3, 2}, {3, 2}, {2, 3}, {2, 3}, {3, 2} };
bool b[blocktype][4][4] = {
{
{0, 0, 0, 0},
{0, 1, 1, 0},
{0, 1, 1, 0},
{0, 0, 0, 0},
},
{
{0, 1, 0, 0},
{0,