Devlog #4 of Inkwell
Inkwell can now switch between chapters and save your progress (finally!)
I’ve been working mostly on the upcoming challenges, which are to implement the books and folders system. anyways, here’s what I did so far
- I worked with arrays to create infinite amount of chapters
- Created save and load function that saves your progress and loads the contents when you open it back later (tho it’ll all be gone when you refresh the page since I didn’t add the local storage part yet)
- Made the chapter buttons in the navigation bar clickable
- I also added comments to help me understand this project if I make some changes after a while
honestly the biggest challenge this time was understanding how chapter state should be saved and loaded. It was a new concept for me, so I spent time learning how it works before implementing the logic myself. Once it clicked, I was able to build the system and finally get chapter switching working the way I wanted.