Log 1



Last week I said I made it to week 8 of the python tutorials, if only that were true!

This week was actually spent writing up the View Message History Log. I spent a lot of time figuring out how to use the `tcod::blit()` functions correctly and getting frame drawing done properly. However, in a last ditch effort late last night everything just fell into place.  the code is available on GitHub and here is where everything comes together in the history view. Everything is in place except scroll back which I should get done by this weekend. Now that everythings running it should be a trivial problem to solve. 

I also started work on moving everything to components and cleaning up the rendering code. I don't want my code to be too tightly coupled to libtcod so I'm free to change things around in the future. I plan to keep working on this and build it into a jumping off point for roguelike games I want to make. I don't want my 'template' to be tied down too much to the implementation details of another library. To achieve this I decided to componentise the Transforms and 'Sprites' and then use a facade around the tcod console rendering functions to in theory they could be pulled out and another rendering library dropped in it's place. This is a little bit more like the Unity way of doing things and follows the Entity Component System pattern. You can see the very beginnings of it here and the first stab at rendering here.

Next up in the tutorials are the items and inventory mechanics. 

Get Yet Another Roguelike tutorial with C++ and Libtcod

Leave a comment

Log in with itch.io to leave a comment.