diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-03-27 02:17:26 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-03-27 02:17:26 -0600 |
commit | 4cabba2561f55ee6d068d631e3272ff7bf984b37 (patch) | |
tree | 1635ee664fa16287ec9058657afe5608df6d99a2 /src/game.js | |
download | bbiy-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.js | 10 |
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") +} |