add start of gun support

This commit is contained in:
Asraelite 2016-03-22 23:46:55 +00:00
parent 444533ce85
commit 65f78ec3ac
19 changed files with 141 additions and 29 deletions

View file

@ -10,6 +10,11 @@ function loadAssets() {
thrust5: 'img/ships/01/thrust5.png',
thrust8: 'img/ships/01/thrust8.png'
}
},
turrets: {
'01': {
small: 'img/turrets/01/small.png'
}
}
}
}
@ -19,7 +24,6 @@ function loadAssets() {
// Magical recursive magic.
(function r(o, t) {
for (var i in o) {
console.log(i);
if (typeof o[i] == 'string') {
t[i] = new Image();
t[i].src = o[i];