summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@gmail.com>2019-08-30 17:02:23 -0400
committerAndrew Lee <alee14498@gmail.com>2019-08-30 17:02:23 -0400
commit8224c6403299bc4967c23de6cea70689c57b42ab (patch)
treedb862802f909abccd10c7eb39bf441817b2f4fbd /js
downloadProject-TechRPG-8224c6403299bc4967c23de6cea70689c57b42ab.tar.gz
Project-TechRPG-8224c6403299bc4967c23de6cea70689c57b42ab.tar.bz2
Project-TechRPG-8224c6403299bc4967c23de6cea70689c57b42ab.zip
Inital commit
Diffstat (limited to 'js')
-rw-r--r--js/sprite.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/sprite.js b/js/sprite.js
new file mode 100644
index 0000000..38b00fc
--- /dev/null
+++ b/js/sprite.js
@@ -0,0 +1,14 @@
+var coinImage = new Image();
+coinImage.src = "images/coin-sprite-animation.png";
+
+function sprite (options) {
+
+ var that = {};
+
+ that.context = options.context;
+ that.width = options.width;
+ that.height = options.height;
+ that.image = options.image;
+
+ return that;
+} \ No newline at end of file