about summary refs log tree commit diff stats
path: root/html/broughlike
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-10-31 07:59:01 -0400
committerelioat <elioat@tilde.institute>2024-10-31 07:59:01 -0400
commit32f23188b63c8995f1a5aa6efbc62e5e616250fa (patch)
tree83e506bddf8b6b91630462c557614034f56ee79b /html/broughlike
parent9aba1d9aa7a212a14862a0aecf1e3495fd18e13d (diff)
downloadtour-32f23188b63c8995f1a5aa6efbc62e5e616250fa.tar.gz
*
Diffstat (limited to 'html/broughlike')
-rw-r--r--html/broughlike/broughlike.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/html/broughlike/broughlike.js b/html/broughlike/broughlike.js
index 5f0863f..2960c95 100644
--- a/html/broughlike/broughlike.js
+++ b/html/broughlike/broughlike.js
@@ -1,10 +1,12 @@
 import { CONFIG, COLORS } from './config.js';
 
+// FIXME: canvas, ctx, and tileSize are all globally available and regularly accessed. 
+// I'd like to refactor this to be more modular so that these can all be contained to the CONFIG object.
 const canvas = document.getElementById('gameCanvas');
 const ctx = canvas.getContext('2d');
 let tileSize = canvas.width / CONFIG.GRID_SIZE;
-let highScore = localStorage.getItem('highScore') || 0;
 
+let highScore = localStorage.getItem('highScore') || 0;
 const player = {
     x: 0,
     y: 0,