From 56c9b003dd21c32fa7a1a16fc525f244235e3ab0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 29 Dec 2015 19:12:15 +0100 Subject: [PATCH] Posizionamento iniziale del giocatore reso casuale --- main.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 058027d..3c30979 100644 --- a/main.cpp +++ b/main.cpp @@ -173,10 +173,11 @@ void corridor(unsigned char map[X_MAX][Y_MAX], int start_x, int start_y, int end } } -void generate(unsigned char map[X_MAX][Y_MAX]) +void generate(unsigned char map[X_MAX][Y_MAX], int player[2]) { int corridor_x; int corridor_y; + //Creazione delle stanze for(int r=0; r