10 Connecting your game to the internet
This chapter covers
-
Generating dynamic visuals for the sky
-
Downloading data using web requests in coroutines
-
Parsing common data formats like XML and JSON
-
Displaying images downloaded from the internet
-
Sending data to a web server
In this chapter, you’ll learn how to send and receive data over a network. The projects built in previous chapters represented a variety of game genres, but all have been isolated to the player’s machine. Connecting to the internet and exchanging data is increasingly important for games in all genres.
Many games exist almost entirely over the internet, with constant connection to a community of other players; games of this sort are referred to as massively multiplayer ...
Get Unity in Action, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.