My Code


The game uses state machine. There is exploration and combat states that is taken care of by WorldManager. The combat state is then divided into PlayerTurnState, EnemyTurnState, StartCombatState, WinState and LoseState. The scene changes whenever the main states (exploration/combat) changes.  The pillars of the game are the managers - AudioManager, WorldManager and PlayerUI. I made a mistake of putting all logic that relates to UI into the same script, so its unnecessarily bloated. This one would need an update the most. There isnt any piece of code that Im proud of in this project, if possible, I would overhaul the whole thing. The code that Im the least embarrased of, would be AudioManager, since at least that one works as it should.

Get Elementalist

Leave a comment

Log in with itch.io to leave a comment.