#How would I go about not duplicating code for multiple character stats

5 messages · Page 1 of 1 (latest)

willow crane
#

Trying to make a sc-fi aviation game with numerous ship in it. While writing I was wondering if I needed to make resource for each ship or have it so each ship inserts from a class in small project?

surreal isle
#

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?

low crest
#

it's usually bad to overengineer at the start

willow crane