Skip to content

Instantly share code, notes, and snippets.

@amirrajan
Last active September 28, 2025 08:50
Show Gist options
  • Select an option

  • Save amirrajan/8ad3fdd852399301fc258eeaccae226f to your computer and use it in GitHub Desktop.

Select an option

Save amirrajan/8ad3fdd852399301fc258eeaccae226f to your computer and use it in GitHub Desktop.
xplat UI considerations for games

Things to consider when building a cross-platform game:

  1. Minimum button sizes for touch displays and small screen (eg steamdeck, mobile, nintendo switch hand held mode) is about 60 pixels. Anything smaller will fail lotcheck.
  2. Visual feedback of UI interactions (Android compliance -> they'll reject a feature/showcase of your game if you don't have this).
  3. Safe area/layout considerations. Avoid things like notches and app switch "chin". If you're making a game that can render edge to edge/without letter boxing. Test at an aspect ratio of 21:12 (1680x960).
  4. Button input detection with keyboard, touch, and gamepad. Navigation using keyboard, gamepad, mouse.
  5. Anything below 22px font size is pretty much unreadable on small screens.
  6. Text fields is a world of pain on console. text input is delegated to the OS (think javascript alert box).
  7. Scrollable/overflow UIs are extremely inaccessible to the blind and those with disabilities related to motorfunction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment