1 2 3 4 5 6 7 8 9 10 11 12
|
void RenderHud()
{
char *player1=player1name,*player2=player2name,*turnstr;
itoa(turn,turnstr,10);
Draw_Str(gamename,Info,(Info.w/2)-(strlen(gamename)/2)-1,0,"white","black",0);
Draw_Str("Turn: ",Info,(Info.w/2)-4,1,"white","black",0);
Draw_Str(turnstr,Info,(Info.w/2)+2,1,"white","black",0);
if(currentplayer==1)
Draw_Str(player1,Info,0,2,player1color,"black",0);
else
Draw_Str(player2,Info,0,2,player2color,"black",0);
}
| |