diff --git a/assets/all_c.png b/assets/all_c.png index 15f926a..b23161f 100644 Binary files a/assets/all_c.png and b/assets/all_c.png differ diff --git a/assets/all_d.png b/assets/all_d.png index d496298..9443377 100644 Binary files a/assets/all_d.png and b/assets/all_d.png differ diff --git a/assets/connection.png b/assets/connection.png new file mode 100644 index 0000000..8417bfa Binary files /dev/null and b/assets/connection.png differ diff --git a/assets/grim.png b/assets/grim.png index dc4e151..063dba9 100644 Binary files a/assets/grim.png and b/assets/grim.png differ diff --git a/assets/o0006.png b/assets/o0006.png new file mode 100644 index 0000000..6d28476 Binary files /dev/null and b/assets/o0006.png differ diff --git a/assets/prober.png b/assets/prober.png index 37ed859..4e1f41b 100644 Binary files a/assets/prober.png and b/assets/prober.png differ diff --git a/assets/tft.png b/assets/tft.png index 4b5cd40..d43126c 100644 Binary files a/assets/tft.png and b/assets/tft.png differ diff --git a/js/sims/TournamentSim.js b/js/sims/TournamentSim.js index 2e332ab..ae9de42 100644 --- a/js/sims/TournamentSim.js +++ b/js/sims/TournamentSim.js @@ -4,11 +4,13 @@ function TournamentSim(config){ self.id = config.id; // APP - var app = new PIXI.Application(500, 500, {transparent:true}); + var app = new PIXI.Application(500, 500, {transparent:true, resolution:2}); self.dom = app.view; // DOM self.dom.className = "object"; + self.dom.style.width = 500; + self.dom.style.height = 500; //self.dom.classList.add("fader"); self.dom.style.left = config.x+"px"; self.dom.style.top = config.y+"px"; @@ -35,6 +37,11 @@ function TournamentSim(config){ return array; }; + self.networkContainer = new PIXI.Container(); + self.agentsContainer = new PIXI.Container(); + app.stage.addChild(self.networkContainer); + app.stage.addChild(self.agentsContainer); + self.populateAgents = function(){ // Clear EVERYTHING @@ -119,10 +126,14 @@ function TournamentSim(config){ // HACK: ALL AT ONCE self.ALL_AT_ONCE = function(){ self.playOneTournament(); - self.eliminateBottom(5); - self.reproduceTop(5); + setTimeout(function(){ + self.eliminateBottom(5); + },300); + setTimeout(function(){ + self.reproduceTop(5); + },600); }; - setInterval(self.ALL_AT_ONCE, 100); + setInterval(self.ALL_AT_ONCE, 1000); // ANIMATE /*app.ticker.add(function(delta) { @@ -161,6 +172,8 @@ function TournamentAgent(config){ // Body! var body = PIXI.Sprite.fromImage("assets/"+self.strategyName+".png"); + body.scale.set(0.5); + if(g.x>250) body.scale.x*=-1; body.anchor.set(0.5); g.addChild(body);