The Next Steps

I hope this small example application has helped you get a feel for how to use the configuration parser and its interface in a real-world context. While we focused on the basics here, the parser and the configuration language offer a lot more than what we could cover in this short tutorial.

Unfortunately, due to time constraints, this is where our guided journey ends—but we’d love to see you take it further on your own!

Here are a few fun ideas to enhance the game and challenge yourself:

  • Add a fallback configuration using Source::fromText() that is compiled into the binary and used when no external configuration file is provided.

  • Increase configuration nesting by introducing a level list. The game can start at the first level and progress to the next once the player reaches the goal.

  • Make the spawn location and number of robots configurable per level.

  • Add support for player lives, and make the number of lives configurable.

  • Make in-game texts (like win/loss messages) customizable through the configuration.

  • (… and whatever else you dream up!)