Skip to content

Commit

Permalink
Centralizacao da mensagem de boas-vindas em cima do labirinto.
Browse files Browse the repository at this point in the history
  • Loading branch information
williamtorres1 committed Jul 12, 2018
1 parent d091bce commit 145ada6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions código fonte/jogo do labirinto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ void show_map(int mapa2[12][12])
33 --- TOCHA ENCONTRADA
41 --- TESOURO REVELADO
44 --- TESOURO ENCONTRADO
54 --- TESOURO ENCONTRADO PELO PLAYER 1
64 --- TESOURO ENCONTRADO PELO PLAYER 2
**/
for(int i=0;i<12;i++)
{
Expand Down Expand Up @@ -768,7 +770,7 @@ void map()
scanf("%d",&user1);//user1=getch() - '0';
/** Se o player I escolher algumnumero entre 1 e 4, ira alterar as variaveis x e y(Coordendas do jogador I)
*/

if(user1 == 1 || user1 == 2 || user1 == 3 || user1 == 4)
{ if(user1==1)
{ x=1;
Expand Down Expand Up @@ -815,7 +817,7 @@ if(user1 == 1 || user1 == 2 || user1 == 3 || user1 == 4)
if(user2==4)
{ w=10;
z=10;

}
}
else
Expand Down
2 changes: 1 addition & 1 deletion código fonte/messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ void messages(int situacao,int player)/**Funcao p/ Mostrar todas as mensagens ao
Necessita de 2 parametros, a mensagem que sera mostrada e a qual jogador ela se refere */
{ switch(situacao)
{ case 1:
{ printf("\t\t\tBem-vindo a caca ao Tesouro!\n\n\n");
{ printf("\t\t\t\t\tBem-vindo a caca ao Tesouro!\n\n\n");
break;
}
case 2:
Expand Down

0 comments on commit 145ada6

Please sign in to comment.