Jump to:
- Introduction
- Responsive Web Design & Relative Units
- Focusing Elements & Keyboard Accessibility
- You Don't Know Everything
Intro
Hello again! Recently, I've been working on web design, specifically, making a website for our game, Tempo Shift (and the site you're probably reading this on too!)
More importantly, I've been working towards making a website that is accessible and allows for our team to show off their progress, as well as keeping all of our social media links in one location.
Learning web accessibility is not just useful for websites, but for all digital content, and working on these websites has provided me with some good insight on what to advise our team on and my own pitfalls as a designer.
I want to talk about a few of those, what I've learned, and how these relate to game design in this post.
Responsive web design & relative units
People use websites (and play games) on various sizes of screens, this is not a surprise. You, the reader, are probably reading this post on a screen that is vastly different than the one I'm typing on.
What works on your screen might be illegible or broken on someone elses, which is especially a problem if someone has vision issues. Allowing for users to adjust their screen size and the elements on it is
integral for user experience & accessibility.
To help solve that, I've used two main tactics; flexboxes and relative size units. For those unfamiliar with flexboxes, they're a relatively simple way to format HTML,
and for my purposes, allow me to very easily change said format to work in portrait and landscape mode. Relative size units, on the other hand, allow for the flexboxes to adapt to various screen sizes.

The current Tempo Shift site in landscape & portrait mode.
For in-engine usage, this information is still useful. At the current moment, we are using UGUI instead of UI Toolkit (which would have been closer to HTML/CSS) but a lot of the core values stay the same.
Unity UGUI uses a few methods for responsive design, the main ones being anchors, canvas scalers, and auto layout. Personally, I have yet to fully look into these, but I intend to when assisting our UI designer.
Focusing elements & keyboard accessibility
If your website requires the user to interact with it, it must allow for them to focus it without getting stuck in a focus trap. For the most part, this is done for you, provided that your HTML is properly ordered.
This was true for most of my site, with one big exception; our gallery. Because our gallery uses some minor Javascript, it struggled to work when it came to tab focusing. It could select the arrows, but it would not be able to
scroll through. This was somewhat fixed by adding a getkeydown as well as using tabfocus set to 0 (the solution isn't perfect, but it does function.)
This error that seems small to most people would have greatly impacted the usability of our site. Unity is almost identical in this problem. All interactable text should aim to be focusable on keyboard, which should be
an easy implementation considering we are primarily testing on controller, which will already require a similar feature.
You don't know everything (and that is okay)
My code was not (and still isn't) perfect the first time around. Even though I was referencing the WCAG on my second monitor, there were still errors I would not have seen if I didn't use a web accessibility checker (personally, I used Skynet Technologies Free Accessibility Checker but there are a ton out there.)
I had very glaring issues that I hadn't considered, my biggest being that I forgot to add any indicator to the social media icons at the top of the screen for screen readers. Instead of getting upset with myself,
I just sat with this information and made sure to write down what I had to fix.

and this was only one section...
I am still learning, and I have to accept that I will make mistakes. What is important is that you try, test, and iterate based on what you learned.
Playtesting is at the heart of every good game, and the same thing goes for accessibility. My goal is to gather feedback during each playtest for accessibility to do the best I can, and even if it isn't perfect,
that insight is how you improve.