Working on Action UI transitions


Not much to say this time around. I worked on handling a myriad of details that are necessary for the Region Selection part of the migration action to work, like making sure that most menus and shortcuts are disabled while the game waits for the user to select the target. I also handled the case where the player tries to execute an action while the simulation is paused. It turns out that, for the action to properly execute, the simulation must be running. So what I did is to force the simulation to move forward by a single step (a day within the game) whenever an action is triggered. This for me is what makes more sense since the results of an action cannot be applied until a simulation step is completed. So, subsequent actions by the player while the game is paused will keep pushing the simulation forward, each one by a day.

Beyond all that, I started working on trying to restore the game to its previous state after an input request is completed. So, for example, triggering the tribal migration action will make the simulation stop and switch the current active overlay into the region selection overlay. After the player clicks on a target region, the game must go back to the previous overlay, restore all the disabled menus and shortcuts, and continue the simulation (if it was running before triggering the action). Then after that, I have to apply the effects of the action taken into the simulation. Hopefully I'll get that all to work next week.

Get Worlds - History Simulator

Comments

Log in with itch.io to leave a comment.

(1 edit)

first