Transitioning gameplay on a head-mounted display