Game.startGame() modified.
startGame now adds Players and Replicator to Display.
This commit is contained in:
parent
dce3313c83
commit
cf52cb6cba
@ -45,6 +45,10 @@ public class Game {
|
|||||||
jaffa = new Player("Jaffa", players.get("jaffa"), getRandomDirection());
|
jaffa = new Player("Jaffa", players.get("jaffa"), getRandomDirection());
|
||||||
replicator = new PlayerBase("Replicator", players.get("replicator"), getRandomDirection());
|
replicator = new PlayerBase("Replicator", players.get("replicator"), getRandomDirection());
|
||||||
|
|
||||||
|
display.addVisual(new PlayerDrawer(oneill));
|
||||||
|
display.addVisual(new PlayerDrawer(jaffa));
|
||||||
|
display.addVisual(new PlayerBaseDrawer(replicator));
|
||||||
|
|
||||||
flowoftime.start(420*420);
|
flowoftime.start(420*420);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user