Day 13
Done today
- Created a Theme resource, and reusing it in existing UI.
- Created a centralized EventBus, so events like “pause game” can be emitted from different sources (a pause button in the UI, the
P
key). - Added a “Mission Failed” popup when dying, allowing to retry (which works) or abandon and go back to the garage (which doesn’t work, yet).
UI and flow
That, and centralizing stuff, was really the main theme for tonight. I know I can create additional weapons and enemies, so there’s no real feeling of (technical) exploration there, nor does it give a better feeling of completion. I may want to spend the next couple of days to “dress” the game area, maybe even starting to assemble the garage, where the player can customize their war machine.
KidsCanCode to the rescue, again!
I wanted to add a greyscale filter over the game area and UI upon death. It seems that with shaders, that’s quite simple… as long as you know what you’re doing. As luck would have it, KidsCanCode wrote a nice recipe to do exactly that.
What’s next?
Tomorrow, I plan to work on the following:
- Some UI and flow. Maybe having the player be able to go back and forth between the game screen and a (mostly empty) garage screen.