C++ TETRIS | 1~2일차 | 메인화면 구현 & 블록 생성
#include #include #include #include #include #include using namespace std; #define map_x 10 #define map_y 20 char map[20][12],ch; int x,y,clearline,score,rotation=1,number; int block1[4][4][4]={ { {0,0,0,0}, {1,1,1,1}, {0,0,0,0}, {0,0,0,0} }, { {0,0,1,0}, {0,0,1,0}, {0,0,1,0}, {0,0,1,0} }, { {0,0,0,0}, {1,1,1,1}, {0,0,0,0}, {0,0,0,0} }, { {0,0,1,0}, {0,0,1,0}, {0,0,1,0}, {0,0,1,0} } }; int block..
2021.07.27