示例#1
0
文件: Tetris.c 项目: Jn58/Tetris
void DrawScreen()
{
	int x, y;

	for( x=0; x < WIDTH+2; x++){
		for( y=0; y < HEIGHT+2; y++){
			if ( y == 0 || y == HEIGHT + 1 || x == 0 || x == WIDTH+1)
				board[x][y].type = WALL;
			else 
				board[x][y].type = EMPTY;
			board[x][y].color=7;
			gotoxy(x*2, y);
			puts(Tile[board[x][y].type]);
		}
	}
	gotoxy(WIDTH*2+8,1);
	puts("Stage");
	PrintStage();
	gotoxy(WIDTH*2+8,5);
	puts("Next");
	gotoxy(WIDTH*2+8,11);
	puts("Score");
	PrintScore();
	gotoxy(WIDTH*2+8,15);
	puts("Key");
	gotoxy(WIDTH*2+7,17);
	puts("Arrow");
	gotoxy(WIDTH*2+7,18);
	puts("Space");
	gotoxy(WIDTH*2+9,19);
	puts("S");
	color(1);
	gotoxy(26, 21);
	puts("만든놈");
	gotoxy(26,23);
	puts("정상우");
	color(7);
}
示例#2
0
void Text::PrintStageCenter(size_t level, size_t stage) {
  PrintStage(level, stage, Position(0.5 - 0.25/2.0, 0.5 - 0.1/2.0), Size(0.25, 0.1));
}