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 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.