Exemplo n.º 1
0
void drawnext(const struct player *p, const struct tetr *next)
{
	int win = WIN_NEXT+isplayer2(p);
	int bl;
	int x;
	if (TWOPLAYER_MODE && !_HEIGHT_24L && term_width < 76)
		return;
	clearwin(win);
	if (next && (bl = next->blocks)) {
		x = (bl!=TETR_I && bl!=TETR_O);
		while (!(bl & 15))
			bl >>= 4;
		setcurs(x, 0);
		drawbl(bl, next->color+10, x, 0);
	}
Exemplo n.º 2
0
void draw_tetris_logo(int x, int y)
{
	int bl;
	drawbl(0x227, 1, x, y);
	drawbl(0x313, 4, x+7, y);
	drawbl(1, 4, x+8, y+1);
	drawbl(0x227, 6, x+12, y);
	drawbl(0x113, 7, x+19, y);
	drawbl(0x111, 2, x+24, y);
	bl = 0x326;
	if (is_outside_screen(x+33, 0))
		bl = 0x322;
	drawbl(bl, 3, x+27, y);
	setattr_normal();
}