Debug Overlay: Simple Implementation


Today I continued working on my in-game feedback. I actually did some of the coding myself! I added a new signal to my debug manager for the debug overlay to listen to. But I let Gemini do the actual coding for the overlay itself. I used my new chat instance, and it helped me work through the logic and formulate the prompt for another chat instance.

I fed that new prompt, along with two scripts for reference and the chat did exactly what I asked, with some minor mistakes. I actually made the corrections myself, but then decided I wanted another small change to the script and it made it happen. Now, when debug mode is enabled (which is by default when I'm testing in the editor) I'll get the overlay on my screen. There's still more functionality to build out for the overlay, but for now I get some necessary feedback on-screen!

Next I need to do the same for the HUD Prefab. I have to start by building out the script for the HUD, beyond the existing placeholder script. It'll have to be able to update the visual elements I've already put in place. Then, once I've got that working, I need to roll it into being handled by the UI Manager showing and not showing as appropriate.

But, that's all I have time for today, so off I go and tomorrow I work on more! 

Leave a comment

Log in with itch.io to leave a comment.