Improve a couple comments

This commit is contained in:
shoe 2025-03-21 22:18:12 +00:00
parent 26e4296596
commit f8f9934833

View File

@ -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. // Define a new mod function that behaves different on negatives.
@ -131,7 +131,7 @@ function update_size() {
canvas.width = window.innerWidth; canvas.width = window.innerWidth;
canvas.height = window.innerHeight; 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_rows = canvas.height.div(cell_size);
n_cols = canvas.width.div(cell_size); n_cols = canvas.width.div(cell_size);
offset_h = (canvas.width - (cell_size * n_cols)).div(2); offset_h = (canvas.width - (cell_size * n_cols)).div(2);
@ -153,6 +153,8 @@ function draw_grid_square(row, col, color) {
* ON SCRIPT LOAD * * ON SCRIPT LOAD *
****************************************************************************/ ****************************************************************************/
// "make sure to eat up your globals honey, they're good for you"
// find the canvas and set its initial size // find the canvas and set its initial size
var canvas = document.getElementById("walker-canvas") var canvas = document.getElementById("walker-canvas")
var ctx = canvas.getContext('2d') var ctx = canvas.getContext('2d')