Browse Source

refactoring: Lesbarkeit des Codes verbessert

main
David PC Saiz 2 years ago
parent
commit
20ccfda56d
  1. 12
      src/Paper-Bin.c

12
src/Paper-Bin.c

@ -45,15 +45,15 @@ struct Player
int Points; int Points;
}playerlist[11]; }playerlist[11];
//Methode die den Eimer erstellt
void buildBin(int width, int heigth) void buildBin(int width, int heigth)
{ {
field[width][heigth] = 'V'; field[width][heigth] = 'V';
field[width+1][heigth+1] = '\\';
field[width+2][heigth+2] = '\\';
field[width-1][heigth+1] = '/';
field[width-2][heigth+2] = '/';
field[width][heigth+1] = ' ';
field[width + 1][heigth + 1] = '\\';
field[width + 2][heigth + 2] = '\\';
field[width - 1][heigth + 1] = '/';
field[width - 2][heigth + 2] = '/';
field[width][heigth + 1] = ' ';
} }
void loadLevel(int lvlnum) void loadLevel(int lvlnum)

Loading…
Cancel
Save