Delve into the Abyss Development Blog - Week 20

 

   This week I decided to take on some simple tasks in UI development. In this case it was designing a prototype for our pause menu. This has been something we've been missing for a while now and it has been causing quite a few issues for us in the long run. Especially since we didn't have any dedicated game termination system set up at the time.

   Since this menu is a prototype we lacked any proper assets for it. So I just made a simple set of flat colors and tied the buttons to a single image. That image is tied to a canvas that has the pause menu code. The code dictates that it will always be looking for an ESC button input. When the ESC button is pressed it will open the pause menu. You can then click either End Game to close the game, or Close Menu to close the pause menu.

   I did run into a few problems. I couldn't set up a system that allowed you to press ESC again to close the menu, which is why Close Menu had to be added. I also had to tie the menu to the MainUI object because making it it's own independent object caused problems that we believe are hierarchy based. I also had to implement the system twice because I forgot to add in Lucas' changes before mine. Other than that though I'm glad to say we finally have a menu that allows us to turn off the game.

Comments

Popular posts from this blog

Delve into the Abyss Development Blog - Week 27

Delve into the Abyss Development Blog - Week 18