↧
Answer by Kevin for Value of describing game mechanics in a data file instead...
A minor supplementary answer: many games help to separate mechanics from the engine with the use of a scripting language such as Lua. So for example, the core engine may be programmed in C++, but the...
View ArticleAnswer by Daniel R. Collins for Value of describing game mechanics in a data...
The project being described here sounds very similar to my Arena program for OSR-style classic D&D that I've maintained for about ten years now. Reflecting back on that, here's a few organizational...
View ArticleAnswer by Philipp for Value of describing game mechanics in a data file...
The problem with building an architecture that is optimized for making certain predicted changes is that such an architecture usually makes unpredicted changes more complicated. Which is a problem...
View ArticleAnswer by Theraot for Value of describing game mechanics in a data file...
You can start by having no data files. And by pursuing a single source of truth, your code might evolve to have sections where it calls a method multiple times in a row with different data for...
View ArticleValue of describing game mechanics in a data file instead of hardcoding?
I am working on a turn-based, dice roll-based roleplaying game simulation engine. Here are a few relevant bits about it:BackgroundThe system is d20 based. The complexity of the system is somewhat less...
View ArticleAnswer by Cem Kalyoncu for Value of describing game mechanics in a data file...
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...
View ArticleAnswer by Cort Ammon for Value of describing game mechanics in a data file...
A data file is less expressive than code. Oddly enough, this can be an advantage, if you want to get things "right." There's a theorem in Computer Science called Rice's Theorem. It states that it is...
View ArticleAnswer by Dewi Morgan for Value of describing game mechanics in a data file...
Obviously, going with this dynamic, data-driven approach is muchslower than having native code directly describe the behavior of thesystem. Performance-wise, hard-coding wins, hands down (both...
View ArticleAnswer by Flater for Value of describing game mechanics in a data file...
Data vs behaviorExample: Sins of a Solar Empire defines most of its ships and abilities in terms of JSON files. These JSON files will define, say, the list of individual weapon mounts equipped on a...
View Article
More Pages to Explore .....