From 8224c6403299bc4967c23de6cea70689c57b42ab Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 30 Aug 2019 17:02:23 -0400 Subject: Inital commit --- js/sprite.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 js/sprite.js (limited to 'js/sprite.js') 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 -- cgit v1.2.3