To set up an online game with your friends, go to the Mario Kart 8 Deluxe menu and select "Online Play" from the main menu. From there, select "Create a Room" and invite your friends using their friend codes or by specifying the room code.