summaryrefslogtreecommitdiff
path: root/src/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.js')
-rw-r--r--src/game.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game.js b/src/game.js
new file mode 100644
index 0000000..4efceae
--- /dev/null
+++ b/src/game.js
@@ -0,0 +1,10 @@
+const context = document.getElementById('game-canvas').getContext('2d');
+context.imageSmoothingEnabled = false;
+
+console.log("HELLO")
+game.initialize = () => {
+ context.clearRect(0, 0, game.width, game.height);
+ context.drawImage(game.assets.bigblue, 0, 0, game.width, game.height);
+
+ console.log("BITCH")
+}