Project updates

To start, we'll update our project by adding the two new configuration files we'll need. This time we don't need to adjust project settings.

Adding new assets

Copy the new files provided for this chapter into the assets/data folder. There is a JSON file and an XML file. Here's what they're used for:

  • movementPatterns.json: This is the configuration file that will define the various movement patterns that enemies will use. We'll examine the contents of the file in the next section.
  • strings.xml: This is the file that will contain all of the game's text data. It will provide a central location to change text and prevent the need to hunt for specific lines of text in the code base.

Get Haxe Game Development Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.