Whilst developing Lunar Panda we wrote a very simple logger for capturing messages from the application. They would be written using Debug.WriteLine(), allowing us to examine them using a debugger. This was fine until, during beta testing, we wanted a simpler way for beta testers to be able to describe any issues they might find.
In comes a new message logger, built on top of our powerful ‘Layers’ code.
The implementation is still fairly simple, but the messages can now be accessed at runtime even without a debugger. We use SCROLL LOCK to toggle the visibility of the messages using a ‘layer’ on top of the main game screen.
Here’s an example. Notice how the layer is slightly transparent, allowing us to ‘dim’ the background and make the message text clear to read.