Improve a couple comments
This commit is contained in:
parent
26e4296596
commit
f8f9934833
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user