mirror of
https://github.com/Cpt-Adok/SNAKE.git
synced 2026-03-28 17:13:43 +00:00
23 lines
577 B
Java
23 lines
577 B
Java
import environnements.Map;
|
|
import game.Terminal;
|
|
import object.Items;
|
|
import personnages.Personnage;
|
|
import personnages.Player;
|
|
import tests.*;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
Personnage.n = 2;
|
|
|
|
Personnage[] personnages = new Personnage[] {
|
|
new Player(new int[] {0, 0}, "Philippe Etchebest"),
|
|
new Player(new int[] {19, 19}, "Luke Skywalker")
|
|
};
|
|
|
|
Map map = new Map(20, 20);
|
|
map.addObjectsRandomize(new Object[] {Items.FRAISE}, 2);
|
|
|
|
new Terminal(map, personnages);
|
|
}
|
|
}
|