FPS: 30,
WAIT_TIME: 60000, // 1 minute
MAX_GAMES: 100, // the most games allowed to go on at once, to be tweaked as needed for purposes
- ROBO_TIME: 30, // time in seconds before filling out with robots
+ ROBO_TIME: 20, // time in seconds before filling out with robots
// gamestate
DYING_TIME_IN_FRAMES: 100,
BOARD_RADIUS: 10,
}
drawLine(ctx, c, eps.f, eps.s);
}
- // do something to show the zones for my sanity
- for(var lz of livingzones) {
- drawLine(ctx, xcolor, lz.f, lz.s);
- }
// balls
for(var b of state.balls) {
drawBall(ctx, bcolor, b, state.dead.length, state.n);
// i think that the above is unneccesary, but might as well be safe. Not like much is going on client-side
ctx.fillStyle = 'rgba(225,225,225,100)';
ctx.textAlign = 'center';
- ctx.fillText("waiting for", 0, -5);
+ ctx.fillText("finding", 0, -5);
ctx.fillText("opponents...", 0, 5);
ctx.restore();
}