diff options
Diffstat (limited to 'js')
| -rw-r--r-- | js/sprite.js | 14 |
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 |
