allegroflare / allegro_flare

Application toolkit for Allegro 5
https://clubcatt.com/allegroflare
MIT License
35 stars 6 forks source link

Add StoryboardPages #214

Closed MarkOates closed 2 years ago

MarkOates commented 2 years ago

This PR will add to AllegroFlare/:

The first two should replace the Elements/Storyboard and Screens/Storyboard components, and take their names.

With this advancement, Storyboards can now have different kinds of pages, not just text. All the custom StoryboardPages/* (which there should be many more of in the future 🙂) derive from the StoryboardPages::Base class, and have start(), advance(), update(), and render() virtual functions to override.

All previous Storyboard behavior (such as emitting a GameEvent on completion) is retained in StoryboardPlayer. Again, StoryboardPlayer should replace Storyboard in the codebase. Feel free to do that after this PR 🙂.