Wrap-Up

In this chapter, you learned to define your game’s entities and components using a data file. Data files are great because you can use them to not only reduce the time it takes to test new entities, but you can also add new entries without having to alter the underlying code needed to load those entities.

Here, you used a data file to implement three new weapons and differentiate the dungeon denizens. You’re getting close to the end of the book, so in the next chapter, you’ll put some finishing touches to your game, and you’ll learn how to distribute it.

Get Hands-on Rust now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.