Quote:
Originally posted by LiquidIce00
yeah but when it comes time for me to add stuff to each part of the game it will be much much simpler.. I could make like 1 collision engine and pass variables to it .. but if I want to make certain shield powerups and stuff it would all mess up .. as long as theres nothing too long which is not necessary, then its fine
|
[Kaimetsu]
Au contraire, it's much easier to add stuff to short scripts that use generic functions, simply because you have less to remember to change. If you make multiple collision detection functions then you have to change all of them to implement a new idea or whatever, whereas if you make a single one that is flexible enough to deal with multiple purposes then you just have to change a few lines of code to effect your improvement. See: Object-Oriented Programming.
[/Kaimetsu]