mirror of
https://github.com/Cpt-Adok/SNAKE.git
synced 2026-01-25 13:34:07 +00:00
ajout de Channel
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user