13th january 2022
I just pushed an update to the source code. Now, the conversation system is remade and is a lot easier to work with.
Before, I had two integers keeping track of the conversation and I mixed them up and I forgot what exactly they represented. I thought I had already implemented it correctly, but I think it had actually never worked.
Now, it is a poper finite state machine. Conversations consist of states, with each state containing speech and buttons for the transition. Now it is way easier to make new conversations and I plan on expanding the conversation aspect of the game.
Here is a before and after screenshot of the code responsible for generating the same speech:
The one on the right is the new version.
And here is a screenshot of the generated conversation in the game:
![](https://img.itch.zone/aW1nLzc4Njk3MTkucG5n/original/XWM1sA.png)