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
Get Acolyte's Pledge
Acolyte's Pledge
Hold fast, Honour the Code
Status | Prototype |
Author | Aviv |
Genre | Role Playing |
Tags | Seven Day Roguelike Challenge, Dungeon Crawler, paladin, Roguelike |
Languages | English |
More posts
- Day 7 - Flourishes and a Furious FinishMar 12, 2023
- Day 6 - (Not so) Paralysed PromisesMar 11, 2023
- Day 5 - Twisting Tunnels and ToolsMar 10, 2023
- Day 4 - Trips, Slips and FireballsMar 09, 2023
- Day 3 - Rainbow WritingsMar 08, 2023
- Day 1 - RebirthMar 06, 2023
Leave a comment
Log in with itch.io to leave a comment.