Searched refs:B_COLS (Results 1 - 4 of 4) sorted by relevance
/openbsd-current/games/tetris/ |
H A D | shapes.c | 48 #define TL -B_COLS-1 /* top left */ 49 #define TC -B_COLS /* top center */ 50 #define TR -B_COLS+1 /* top right */ 53 #define BL B_COLS-1 /* bottom left */ 54 #define BC B_COLS /* bottom center */ 55 #define BR B_COLS+1 /* bottom right */ 76 /*18*/ { 6, 6, { TC, BC, 2*B_COLS } }/* sticks out */
|
H A D | tetris.h | 55 #define B_COLS 12 macro 57 #define B_SIZE (B_ROWS * B_COLS) 83 #define CTOD(x) ((x) * 2 + (((Cols - 2 * B_COLS) >> 1) - 1))
|
H A D | tetris.c | 87 *p++ = i <= (2 * B_COLS) || (i % B_COLS) < 2; 101 base = i * B_COLS + 1; 103 for (j = B_COLS - 2; *p++ != 0;) { 107 memset(&board[base], 0, B_COLS - 2); 111 board[base + B_COLS] = board[base]; 112 memset(&board[1], 0, B_COLS - 2); 246 pos = A_FIRST*B_COLS + (B_COLS/2)-1; 261 if (fits_in(curshape, pos + B_COLS)) { [all...] |
H A D | screen.c | 379 curscreen[D_LAST * B_COLS - 1] = -1; 413 t = c + r * B_COLS; 416 tr = t / B_COLS; 417 tc = t % B_COLS; 425 bp = &board[D_FIRST * B_COLS]; 426 sp = &curscreen[D_FIRST * B_COLS]; 429 for (i = 0; i < B_COLS; bp++, sp++, i++) { 457 #define STOP (B_COLS - 3)
|
Completed in 66 milliseconds