Unesroga – Demo 2 finished

I’ve finished the work on the second demo of Unesroga.

The last things to do was to generate some texts for the completely irrelevant books in the shelf of the starting room. Still, I wanted them to be in there and there will be more in the future.
I had to fix more stuff in the layouting code of the books after adding new ways to style the text elements with a little markup, because changing the font or size of the text made the previous size calculations invalid.
There was an incredible struggle to maintain the correct number of linefeeds because of the way I first split the text into parts (including styling, alignment and some other metadata) during the calculation and split to pages step and at the same time reconstructed the text, so it could be drawn later on.
In the end, I got rid of the double parsing stuff and used the calculated parts directly, which produced some other problems, but eventually it got all resolved and now it is stable and works in all cases when there is plain text, styled elements, page styles or conditions or custom pages with images etc.

The demo contains roughly 75% of the game. There are two more rooms planned and I have a basic idea of what will happen in one of them.

But before I start the work on that, I will wait for the initial reaction to the new demo and see if I have to do some quick fixes to it, so I can release it to a larger group.

I am curious to find out whether the puzzles will be solved quicker (or at all) than the one in the first small demo. ^-^

Leave a Reply

Your email address will not be published. Required fields are marked *