M
Munch
Guest
What is better practice?
Currently I am giving an object different values, depending on the sprite I choose.
For example an object "car", that has the variable weight and speed, which get set depending on the sprite it gets.
or
do I create one parent object (with standard variable / functions) and an child object for every sprite/car I have with already set variables?
or something completely different?
Currently I am giving an object different values, depending on the sprite I choose.
For example an object "car", that has the variable weight and speed, which get set depending on the sprite it gets.
or
do I create one parent object (with standard variable / functions) and an child object for every sprite/car I have with already set variables?
or something completely different?