CrystAlien-Conflict-Flash-Wrapper
CrystAlien-Conflict-Flash-Wrapper copied to clipboard
split god objects
starting with pickups, split them to a class with roughly the following structure:
// pickup object // skin : appearance/sprite // item : object defining cash bonus, weapon upgrade, etc... probably will be {type,value} Pickup(skin,item) { handle() // tick method draw() // just draw the sprite checkforhit() // collision destroy() // die, possibly could be merged with collect collect() // give item, die }
putting this here so it has somewhere else besides discord or some text doc i later forget about or lose