First level Maker (could be better tho)
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			+ one exemple level11 Signed-off-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
This commit is contained in:
		@ -98,9 +98,15 @@ public class FileParserFactory {
 | 
			
		||||
 | 
			
		||||
        boolean[][] map_shape = new boolean[map_height][map_width];
 | 
			
		||||
 | 
			
		||||
        //grind map here
 | 
			
		||||
        for (int i = 0; i < map_height; i++) {
 | 
			
		||||
            for (int j = 0; j < map_width; j++) {
 | 
			
		||||
                System.out.print("mur (" + i + ", " + j + ")? (y/n):");
 | 
			
		||||
                map_shape[i][j] = in.next(".").charAt(0) != 'y';
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        level.setShape(map_shape);
 | 
			
		||||
        System.out.println(level);
 | 
			
		||||
        System.out.print("Entrez le nombre de pieces:");
 | 
			
		||||
        int piece_amount = in.nextInt();
 | 
			
		||||
 | 
			
		||||
@ -112,7 +118,12 @@ public class FileParserFactory {
 | 
			
		||||
            int _piece_height = in.nextInt();
 | 
			
		||||
            boolean[][] _piece_shape = new boolean[_piece_height][_piece_width];
 | 
			
		||||
 | 
			
		||||
            //grid piece here
 | 
			
		||||
            for (int k = 0; k < _piece_height; k++) {
 | 
			
		||||
                for (int j = 0; j < _piece_width; j++) {
 | 
			
		||||
                    System.out.print("mur (" + k + ", " + j + ")? (y/n):");
 | 
			
		||||
                    _piece_shape[k][j] = in.next(".").charAt(0) != 'y';
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            level.addPiece(new Piece(_piece_shape));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								app/src/main/resources/level11.level
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/resources/level11.level
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										1
									
								
								app/src/main/resources/school_project/level11.level
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								app/src/main/resources/school_project/level11.level
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
SMS<05><><EFBFBD><EFBFBD>3<><33>"<22>"<22>"p"<22><11>SME
 | 
			
		||||
		Reference in New Issue
	
	Block a user