tzachshabtay / MonoAGS

AGS (Adventure Game Studio) reimagined in Mono
https://tzachshabtay.github.io/MonoAGS/
Artistic License 2.0
28 stars 10 forks source link

Refactor room transitions #304

Closed tzachshabtay closed 6 years ago

tzachshabtay commented 6 years ago

Room transitions used a convoluted state machine and handled in multiple classes, which made it hard to understand what was going on. Refactored so that almost the entire workflow is handled in one class (RoomTransitionWorkflow). This also fixes a bug where the transition after the splash screen faded in the splash screen itself instead of the new room (this is because the display list didn’t mark the background layer as dirty).