Port a Unity Game to Your Own Engine: Part 11
A concrete look into a data-oriented approach to engine development.
Write the code for enemy instances spawn and move. Given the data format, this is more or less the only code that could be written. i.e. The format essentially specifies this is the code. There are very few code paths to test, giving higher confidence in the result working everywhere. At this point you can also see the ratio of time spend working with the data versus the time spent writing code was something like 10:1. That’s a healthy ratio. A data-oriented approach means spending most of your time with the data. The code part is only a very small part of what programming is.
Links to download files for paid subscribers below.
AltDevArts is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.