diff --git a/static/game-bc/game-bc.js b/static/game-bc/game-bc.js index 2356ba5565d4ad0069d8a16f77126fc6b2f70bd7..4bc0f2e3d42ac5fa18e4e68a3f5fd146c8d93d74 100644 --- a/static/game-bc/game-bc.js +++ b/static/game-bc/game-bc.js @@ -171,6 +171,7 @@ function check_if_assets_loaded() { if (flag_done && !flag_fail && !flag_asst_load) { flag_asst_load = true; redraw_canvas(); + window.alert('Try to get the Komataeibacter colony to produce as much cellulose as possible!'); } } @@ -350,6 +351,15 @@ function draw_total_production(x, y, w, h, prod) { // ctxt_canv.fillStyle = 'lightgrey'; ctxt_canv.fillStyle = ctxt_canv.createPattern(imag_ptrn, 'repeat'); ctxt_canv.fill(); + + ctxt_canv.save(); + ctxt_canv.translate(x, y + h); + ctxt_canv.rotate(-.5 * Math.PI); + ctxt_canv.textAlign = 'left'; + ctxt_canv.font = '40px serif'; + ctxt_canv.fillStyle = 'black'; + ctxt_canv.fillText('TOTAL CELLULOSE', 0, 0); + ctxt_canv.restore(); } function draw_colony(nb, prod) {