summaryrefslogtreecommitdiff
path: root/js/sprite.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/sprite.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