issues
search
facerix
/
Canvassa
Dojo-powered JavaScript clone of the Legend of Zelda
http://www.buyog.com/code/loc/Canvassa
12
stars
3
forks
source link
[Game] Fix projectile management
#9
Open
facerix
opened
14 years ago
facerix
commented
14 years ago
(I'm not keeping track of them correctly, especially the sword)
ideally, instead of player.projectile = {}, we should have something like this: player.swordProj = {}; player.itemProjs = []; loc.InventoryItem.maxProj = 1; player.getProjsOfType() loc.InventoryItem.getProj() = { if(len(player.getProjsOfType(this.declaredClass)) < this.maxProj) { // get proj } else { return Null; } }