Hi all, this is the 7th part of this series on coding Sokoban in c++. In this part, I did a few things:
- I fixed the problem with menu highlighting that I had at the end of the last video.
- I changed the game to use inheritance to implement a basic state machine.
- I updated the game to drop the UI code and made it part of each state.
- I added an option to the main menu for players to exit, rather than making them ctrl-c to quit.
- I added support for arrow keys to the game, so players no longer have to use WASD.
Hope you enjoy!
Project repository: https://github.com/bi3mer/sokoban