mirror of
https://github.com/Cpt-Adok/SNAKE.git
synced 2026-03-31 18:31:34 +00:00
correction de probleme
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package display;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import environnements.Grid;
|
||||
import personnages.Personnage;
|
||||
import types.Item;
|
||||
@@ -51,8 +53,13 @@ public class Display {
|
||||
(x < map[y].length - 1) ? map[y][x + 1] == Item.WALL : false,
|
||||
};
|
||||
|
||||
// System.out.println(Arrays.toString(position));
|
||||
|
||||
for(Wall value : Wall.values()) {
|
||||
if(value.isEqual(position)) map[y][x].updateStringCode(value.getAscii());
|
||||
if(value.isEqual(position)) {
|
||||
map[y][x].updateStringCode(value.getAscii());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user