Quantcast
Channel: Value of describing game mechanics in a data file instead of hardcoding? - Game Development Stack Exchange
Viewing all articles
Browse latest Browse all 9

Answer by Cem Kalyoncu for Value of describing game mechanics in a data file instead of hardcoding?

$
0
0

One of the most challenging aspects of game development is balancing. It is very difficult to compile, yet alone change, your code every time you increase damage of a single ability, only to increase it further a second later. This becomes even a bigger issue if you are using C++. C++ is easy to program (you should learn it fully first), and fast to run but there is one huge problem: compilation time.

Use data files load everything that is numeric, textual or enumeration based. When you have a data manager that can fill in your data structures, there will be next to no programming overhead using data files. Trying to offload logic is not easy nor a good idea most cases.

An additional suggestion, but a keyword during development that will reload data files instantly, this might take some time to ensure it will not cause any serious issues but it will worth the effort.


Viewing all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>