O'Reilly logo

Haxe Game Development Essentials by Jeremy McCurdy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required