#How would I go about not duplicating code for multiple character stats
5 messages · Page 1 of 1 (latest)
It really depends on exactly what you're doing. Can all the ships use the same code, or do they differ enough that they need to be coded differently? How much do stats differ, do certain types of ships share certain stats? Do stats change?
don't think about that intially, it's better to just throw out a prototype, and if you run into issues later regarding code re-use you'll be able to ask based on what you need
it's usually bad to overengineer at the start
That's true, I'll cross the bridge when I get to it then. Thank you.