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
Worlds - History Simulator
A world generator, and human history simulator
Status | On hold |
Author | DrTardigrade |
Genre | Simulation, Strategy |
Tags | Alternate History, Procedural Generation |
Languages | English |
More posts
- Extended HiatusOct 23, 2022
- Worlds 0.3.4.01 (minor update)Oct 03, 2022
- Worlds 0.3.4Aug 22, 2022
- Worlds 0.3.4 alpha 4 ready for closed testingJul 27, 2022
- Done Migrating Discovery Mod ScriptsJun 05, 2022
- Halfway through Alpha 4Apr 19, 2022
- Closed Alpha 3 StartMar 20, 2022
- The Last PartMar 15, 2022
- Closed Alpha 3 Participation FormMar 13, 2022
- Relationship Improving Action Done...Jan 04, 2022
Comments
Log in with itch.io to leave a comment.
first