Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Andrea |
Hello,
i´m working on a RTS game, and currently trying to understand the best way to represent the many in game resources.
I´m tempted to use simple variables (var wood=100
) but even if it´s quite simple to code it, i dont like it for two reason:
- I would like the resource variable to have more properties then the amount only
- Writing a list of variable is not the top in case this list is modified or new resources are added (re-write all the code to include the new resource)
Do you know a better way I can accomplish it? Is there any node it can help me here?