Tuesday, January 9, 2024

Faire Hollow Dev Log #7 - The State Machine

Happy New Year! I've been hard at work on the Player state machine, creating new capabilities around the inventory system. You can now pick up items, carry items, and eat items! All that bread on the ground now serves a purpose: when you walk over to it and interact with it, you can pick it up and then eat it, thereby increasing your stamina by one! It's kind of the first real "game loop" that I've made in Faire Hollow!

I continue to refactor the code base as I move through it, and each week I feel like I've turned a major corner in my understanding of object-oriented programming. There's so much to learn, but I'm getting more comfortable with custom classes and overall just writing cleaner code. Reddit has been hugely helpful via the Godot subreddit, and I've been using ChatGPT to ask some questions and get decent answers to point me in the right direction.

I also bought a new stand microphone 😎 , and I made my first YouTube video with sound. In this video I walk through what a "state machine" is, and why it's useful for development. I show some code examples from Godot, and check out those sweet transitions, guys 😆 ... I'm not saying this is the best video in the world, but it did help me learn more about how OBS Studio works, so I can make better videos in the future!

No comments:

Post a Comment

Faire Hollow Dev Log #11 - Official Trailer

I am thrilled to share the official trailer for Faire Hollow! This has been a month-long effort to create just the right combination and var...