about summary refs log tree commit diff stats
path: root/html/broughlike
diff options
context:
space:
mode:
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,