Port a Unity Game to Your Own Engine: Part 11
A concrete look into a data-oriented approach to engine development.
Runtime Update
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.
Next: Port a Unity Game to Your Own Engine: Part 12
Links to download files for paid subscribers below.