Documente Academic
Documente Profesional
Documente Cultură
Desarrollo multiplataforma
10 minutos
Este artículo describe las mejores prácticas para el desarrollo de juegos de Roblox en múltiples
plataformas.
Filosofía Roblox
A diferencia de algunos motores de juegos, Roblox es inherentemente multiplataforma : los
jugadores pueden descubrir y jugar juegos en una PC, luego levantar su teléfono y continuar
jugando donde lo dejaron. En la mayoría de los casos, los juegos de Roblox deben ser
accesibles y divertidos en todas las plataformas, en lugar de estar optimizados para una
plataforma y simplemente "básicamente funcionales" en otras.
Primero móvil
Las estadísticas recientes indican que más del 55% de las sesiones de juego de Roblox se
realizan en dispositivos móviles, por lo que debe centrar un esfuerzo proporcional en crear una
gran experiencia móvil. Cuando planifique su interfaz de usuario y controles, tenga en cuenta lo
siguiente:
En contraste, un ligero rediseño de la GUI ofrece una experiencia de usuario positiva tanto en la
PC como en el teléfono:
CONTENIDO
Filosofía Roblox
odinetnoc
ratlucO
Primero móvil
Diseño de interfaz de
usuario
Regiones reservadas
Zonas del pulgar
IU adaptable
IU basada en contexto
Detección de entrada
Regiones reservadas
https://developer.roblox.com/en-us/articles/cross-platform-development 1/4
21/6/2020 Desarrollo multiplataforma
Adaptable UI
Comfortable thumb zones differ between phones and tablets since tablets have a larger
screen. Remember that a button placed 30% below the screen’s top edge is easily reachable on
a phone but almost unreachable on a tablet.
A more reliable way to position custom buttons is in direct relation to the jump button. The
following code fetches the position of the jump button and creates a placeholder ImageButton
above it:
EXPAND
https://developer.roblox.com/en-us/articles/cross-platform-development 2/4
21/6/2020 Desarrollo multiplataforma
Context-Based UI
Screen space is considerably smaller on mobile devices, so you should show only the most vital
information during active gameplay. For example, if there’s a special player action to open
doors, it doesn’t make sense to constantly show an “Open Door” button — instead, the button
should appear only when the player is near a door and disappear when they’ve moved a
certain distance away.
Input Detection
In some cases, it’s necessary to know the player’s current device in order to adjust the UI, show
action buttons/reminders, etc. For instance, if a player approaches a treasure chest and there’s
an action bound to collecting the gold, you may want to show PC players an on-screen T key
icon but show mobile players an active “Collect” button.
EXPAND
https://developer.roblox.com/en-us/articles/cross-platform-development 3/4
21/6/2020 Desarrollo multiplataforma
Note that the script uses the UserInputService:GetLastInputType() method instead of just
checking whether the device has an input "capability" like touch. This is because a PC player
may prefer using their mouse and keyboard, even if their PC has touchscreen functionality,
and your UI should respect the active input type.
Once the PlayerInputModule script is in place, you can get the player’s last input type from a
LocalScript as follows:
EXPAND
ARTÍCULOS RELACIONADOS
https://developer.roblox.com/en-us/articles/cross-platform-development 4/4