From 19dbd083d14ddcd9f71bcb2cac43b2c164cc99b2 Mon Sep 17 00:00:00 2001 From: Elijah Cohen Date: Thu, 16 May 2019 11:40:29 -0500 Subject: [PATCH] small improvements --- TODO.org | 1 + server/constants.js | 2 +- web/draw.js | 6 +----- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/TODO.org b/TODO.org index 7b9d9e9..64839b7 100644 --- a/TODO.org +++ b/TODO.org @@ -1,5 +1,6 @@ todo: - make sure files in the right place for server stuff +- zoom in a little? maybe: - paddle movement bump - more balls diff --git a/server/constants.js b/server/constants.js index 22edec0..733eb02 100644 --- a/server/constants.js +++ b/server/constants.js @@ -7,7 +7,7 @@ var c = { 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, diff --git a/web/draw.js b/web/draw.js index 8c44362..30cc825 100644 --- a/web/draw.js +++ b/web/draw.js @@ -43,10 +43,6 @@ var draw = function(state, ctx) { } 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); @@ -128,7 +124,7 @@ var drawWaiting = function(ctx) { // 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(); } -- 2.39.2