CrystAlien-Conflict-Flash-Wrapper icon indicating copy to clipboard operation
CrystAlien-Conflict-Flash-Wrapper copied to clipboard

split god objects

Open Brian151 opened this issue 5 years ago • 0 comments

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

Brian151 avatar Sep 25 '20 03:09 Brian151