In this stream, I work on refining a simple Pong game while exploring the Godot engine in greater depth. Throughout the session, I focus on tweaking the in-game audio mixer and tackling various issues with viewport scaling and UI elements.
The first portion of the stream dives into improving the audio mixer functionality. I reorganize code to make it more efficient by creating helper functions and addressing bugs related to audio bus handling. I test volume settings for master, music, and effect audio channels to ensure they interact properly with the game's mixer, debugging several challenges along the way.
Next, I experiment with creating a more interactive UI by introducing hover and scaling effects for buttons. This involves scripting animations with Godot's tween functionality and fine-tuning the behavior to make the user interface more dynamic. These effects add a polished interactive detail, laying a foundation for more complex UI work in the future.
Finally, a significant portion of the time is spent addressing viewport scaling problems and figuring out why the ball doesn't spawn correctly in the center of the screen after resizing the game window. I delve into Godot project settings, analyze viewport versus canvas item stretching modes, and explore ways to calculate world coordinates accurately. Despite these challenges, I highlight the steps I’ll take next to resolve the issue.
This project is part of my 'Learning game dev with Godot' series, where I explore the Godot engine to build foundational skills for future, more advanced game development projects. If you're learning Godot or interested in game development, join me as I share insights, debug issues live, and continue improving this practice project.