Searched refs:B_COLS (Results 1 – 4 of 4) sorted by relevance
/dragonfly/games/tetris/ |
H A D | tetris.c | 83 *p++ = i <= (2 * B_COLS) || (i % B_COLS) < 2; in setup_board() 97 base = i * B_COLS + 1; in elide() 99 for (j = B_COLS - 2; *p++ != 0;) { in elide() 103 memset(&board[base], 0, B_COLS - 2); in elide() 107 board[base + B_COLS] = board[base]; in elide() 108 memset(&board[1], 0, B_COLS - 2); in elide() 224 pos = A_FIRST*B_COLS + (B_COLS/2)-1; in main() 239 if (fits_in(curshape, pos + B_COLS)) { in main() 240 pos += B_COLS; in main() 258 pos = A_FIRST*B_COLS + (B_COLS/2)-1; in main() [all …]
|
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 | screen.c | 373 curscreen[D_LAST * B_COLS - 1] = -1; in scr_update() 407 t = c + r * B_COLS; in scr_update() 410 tr = t / B_COLS; in scr_update() 411 tc = t % B_COLS; in scr_update() 419 bp = &board[D_FIRST * B_COLS]; in scr_update() 420 sp = &curscreen[D_FIRST * B_COLS]; in scr_update() 423 for (i = 0; i < B_COLS; bp++, sp++, i++) { in scr_update() 451 #define STOP (B_COLS - 3) in scr_update()
|
H A D | tetris.h | 53 #define B_COLS 12 macro 55 #define B_SIZE (B_ROWS * B_COLS) 81 #define CTOD(x) ((x) * 2 + (((Cols - 2 * B_COLS) >> 1) - 1))
|