diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6582234 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Local Netlify folder +.netlify diff --git a/index.html b/index.html index aef25cc..da0362b 100644 --- a/index.html +++ b/index.html @@ -2,14 +2,14 @@ - NeuroCore: Byte Wars - + NeuroCore: Byte Wars +
- +
Presents
@@ -22,7 +22,7 @@
- +
diff --git a/js/player.js b/js/player.js index 65ebd45..47cef5d 100644 --- a/js/player.js +++ b/js/player.js @@ -27,7 +27,7 @@ class Player { constructor(x, y) { this.x = x; }; // Set the source after setting up event handlers - this.sprite.src = 'assets/Sprites/sprite_0.png'; + this.sprite.src = '/.netlify/images?url=/assets/Sprites/sprite_0.png&w=65&h=65&fit=cover&fm=webp&q=90'; // Movement smoothing this.velocity = { x: 0, y: 0 };