diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-08-30 17:02:23 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-08-30 17:02:23 -0400 |
| commit | 8224c6403299bc4967c23de6cea70689c57b42ab (patch) | |
| tree | db862802f909abccd10c7eb39bf441817b2f4fbd /js/sprite.js | |
| download | Project-TechRPG-8224c6403299bc4967c23de6cea70689c57b42ab.tar.gz Project-TechRPG-8224c6403299bc4967c23de6cea70689c57b42ab.tar.bz2 Project-TechRPG-8224c6403299bc4967c23de6cea70689c57b42ab.zip | |
Inital commit
Diffstat (limited to 'js/sprite.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 |
