From: Elijah Cohen Date: Thu, 16 May 2019 16:40:29 +0000 (-0500) Subject: small improvements X-Git-Url: https://git.eli173.com/?a=commitdiff_plain;h=19dbd083d14ddcd9f71bcb2cac43b2c164cc99b2;p=pong_br small improvements --- 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(); }