Galactic Food Truck Simulator

While working on the truck, you will test your skills and your patience. Serve customers from all over the universe, translate their weird languages, squish some bugs and save the universe!

Challenges:

  • Creating a smooth and scalable flow to the game that could easily be changed while following SOLID principles.

  • Developing a narrator system that would react to all possible user actions.

  • Crafting a linear tutorial system that would move on to the next step only when the user followed the instructions.

Solutions:

  • Implemented a game-wide State Machine that holds the different “mini-games” in different states. This allows for new “mini-games” to easily be added while keeping clean, organized code.

  • Through the observer pattern, developed a list of actions that the user could take. Listeners were then added accordingly.

  • Used hierarchical State Machines in order to leverage the previous one made for the main level.