Change to proper constructor + prototypes

This commit is contained in:
Sam Potts
2017-06-04 15:27:37 +10:00
parent aaab9ad082
commit 7daa08c32f
5 changed files with 1344 additions and 1183 deletions

2
demo/dist/demo.js vendored

File diff suppressed because one or more lines are too long

View File

@ -37,6 +37,10 @@
]
});
// Expose for testing
window.player = player;
// Load demo sprite
window.loadSprite('dist/demo.svg', 'demo-sprite');
// Setup type toggle