ajout de Channel

This commit is contained in:
2024-05-23 16:46:56 +02:00
parent 71cb378256
commit 0e0a1c3ff4
6 changed files with 68 additions and 24 deletions

View File

@@ -1,3 +1,4 @@
import connexion.Channel;
import environnements.*;
import game.Terminal;
import personnages.*;
@@ -7,15 +8,17 @@ public class Main {
public static void main(String[] args) {
Personnage.n = 2;
Map map = new Map(20, 20);
Personnage[] personnages = new Personnage[] {
new Player(new int[] {0, 0}, "Philippe Etchebest"),
new Player(new int[] {19, 19}, "Luke Skywalker")
new Channel(map, "23", "24")
};
Map map = new Map(20, 20);
// map.addObjects(Item.FRAISE, 0, 0);
// map.addObjectsRandomize(new Item[] {Item.FRAISE}, 1);
new Terminal(map, personnages).run();
new Terminal(map, personnages).run("24");
}
}