June 2021
Beginner
344 pages
8h 9m
English
Writing spawn functions for every item, monster, or other entity you think up can take time, and waiting for your game to recompile so that you can test those new ideas is not fun. But don’t worry, there’s something that can help: data-driven design.
With data-driven design, instead of hard-coding entities into your game’s source code, you specify these entities in a data file, which gets read when the game generates a new level. This type of setup allows you to rapidly test new ideas.
Terminology Time | |
|---|---|
|
|
A data-driven design loads as much data as possible from data files, and then it uses that data to populate ... |
Read now
Unlock full access