summaryrefslogtreecommitdiff
path: root/src/game.js
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-03-27 02:17:26 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-03-27 02:17:26 -0600
commit4cabba2561f55ee6d068d631e3272ff7bf984b37 (patch)
tree1635ee664fa16287ec9058657afe5608df6d99a2 /src/game.js
downloadbbiy-4cabba2561f55ee6d068d631e3272ff7bf984b37.tar.gz
bbiy-4cabba2561f55ee6d068d631e3272ff7bf984b37.zip
Initial commit - a working dynamic loader with Express
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")
+}