aboutsummaryrefslogtreecommitdiff
path: root/js/mygame.js
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-12-29 15:44:42 +0000
committerJuan J. Martinez <jjm@usebox.net>2023-12-29 15:44:42 +0000
commit0a24e427bd19953d1f1675ff22ae80bec58f3ac0 (patch)
treefe764051388ade8e9715fc726c6ed95e3c52e964 /js/mygame.js
parent49d733c84dc142ca34aa4bec3a6f66203018d822 (diff)
downloadjs-canvas-2023-0a24e427bd19953d1f1675ff22ae80bec58f3ac0.tar.gz
js-canvas-2023-0a24e427bd19953d1f1675ff22ae80bec58f3ac0.zip
Move utility consts to the base class
Diffstat (limited to 'js/mygame.js')
-rw-r--r--js/mygame.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/js/mygame.js b/js/mygame.js
index bd5b498..5b4a2fa 100644
--- a/js/mygame.js
+++ b/js/mygame.js
@@ -1,7 +1,3 @@
-const floor = Math.floor;
-const max = Math.max;
-const min = Math.min;
-
class MyGame extends Game {
constructor(canvas) {
super(canvas, 320, 240);