From f8f9934833558c8ee08f220064a0dc7a27b8b392 Mon Sep 17 00:00:00 2001 From: shoe Date: Fri, 21 Mar 2025 22:18:12 +0000 Subject: [PATCH] Improve a couple comments --- walkers.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/walkers.js b/walkers.js index 33e6b74..f9605c2 100644 --- a/walkers.js +++ b/walkers.js @@ -1,5 +1,5 @@ /**************************************************************************** - * TODO: CATEOGORIZE THESE BULLSHITS * + * Functions JS doesn't want you to have, ig * ****************************************************************************/ // Define a new mod function that behaves different on negatives. @@ -131,7 +131,7 @@ function update_size() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; - // update all the globals we're using to + // update all the globals we're using too n_rows = canvas.height.div(cell_size); n_cols = canvas.width.div(cell_size); offset_h = (canvas.width - (cell_size * n_cols)).div(2); @@ -153,6 +153,8 @@ function draw_grid_square(row, col, color) { * ON SCRIPT LOAD * ****************************************************************************/ +// "make sure to eat up your globals honey, they're good for you" + // find the canvas and set its initial size var canvas = document.getElementById("walker-canvas") var ctx = canvas.getContext('2d')