Day 2 - Taking Stock


I didn’t have a huge amount of time during the day to work on Acolyte’s Pledge, but I think I made the most of the time I had.

Day 2

I spent a while (probably longer than is reasonable) futzing with the history log viewer so that it would show everything in a sensible order, and be scrollable. It’s nice to be able to go all the way back to the beginning though. It doesn’t currently show the “scroll position”, like you might expect in a UI, but I could likely add it without too much work.

After that, the main focus of the evening was implementing items and their effects. I sketched out a simple system for working with items before I went to sleep, and then after I awoke I kind of overhauled it to allow for more conventional inventory mechanics.

The result is:

  • the world generates health potions on the ground (the ground can hold items)
  • you can walk over them, press ‘g’ and pick them up (I might change this to be an automatic action in the future, unsure)

  • you can view your inventory, to see how many of an item you have
  • you can press ‘q’ to drink a potion and regain a hit point. If you do, you consume a potion, and if you’ve run out, you can’t regain more HP.

It’s got some rough edges, still, but it’s a serviceable foundation.

Looking Forward

I’m going to have almost zero free-time for Day 3, so I don’t expect I’ll have much to report.

There’s one more thing suggested for a “basic” item system (at least, according to the tutorial blueprint I’m using): the ability to drop an item using the inventory display. I think that this lays the ground-work for having items performing multiple functions, as it means that the player has the means to select a particular item to us.

Ideally, I’d like to tidy up some code duplication between the history viewer and inventory (I just made a new “line-viewer” to render arbitrary lines of text and it shares a lot of functionality), but we will see what time allows.

Next up after items is “Scrolls”, aka “Ranged targeting” and non-melee attack actions, which will add some dynamic play to the system.

Time to go deeper!

Files

Windows x64 3.5 MB
Version 0.0.2 Mar 07, 2023
Windows x32 3.4 MB
Version 0.0.2 Mar 07, 2023
Mac OS (x64 & ARM64) 4.1 MB
Version 0.0.2 Mar 07, 2023
Linux x64 6.4 MB
Version 0.0.2 Mar 07, 2023

Get Acolyte's Pledge

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.