Tutorial


Tutorial is added to the game with instuctions to most game features.  It takes about 50 steps to complete and sometimes some controls are highlighted with a red blinking rectangle. This tutorial is non-interactive, the user only has to click OK - OK and read the text. Maybe later I will add some interactive elements but this was easier :)

Each tutorial step is an enum value with a String property and a Rectangle (containing the red highlight).

There is also a Tutorial class that contains the reference to the current step and that can handle utility tasks like loading the boolean from Preferences that holds the information if the tutorial was already completed or not. (This is stored in browser cache - along with saved game state.)

I had to make another class that generates a map for the tutorial with all the different area types that I wanted to show. 


Creating the tutorial was fun - now I will add music from opengameart.org and then maybe some hit/death/spell effects to improve the graphical experience.

Leave a comment

Log in with itch.io to leave a comment.