Game Development Reference
In-Depth Information
One way of doing this would be to use the Twitter API directly by sending HTTP
requests to Twitter's servers using the IwHTTP API. This would allow a solution to
be created that should work fine on all operating systems; but this might require a lot
of code to be implemented to deal with all the possible problems that can occur when
working online (for example, lack of internet connection, server timeouts, and so on).
Another possibility, although it would be limited to iOS and Android, would be to
use the Marmalade Extensions Development Kit ( EDK ) to access existing Twitter
solutions on these two platforms. This may be simpler to implement since the
low level Twitter API HTTP requests will have been taken care of; but the EDK
is currently only supported by iOS and Android. Chapter 10 , Extending Marmalade
with the Extensions Development Kit (EDK) , of this topic will be looking at the EDK in
more detail.
If you are interested in supporting Twitter in Marmalade, the following web page
may be of use to you:
https://dev.twitter.com/docs/twitter-libraries#cplusplus
It mentions a number of existing C++-based libraries for accessing Twitter that may
form a good starting point for a Marmalade solution.
Connecting to other types of online
services
We'll now take a quick look at some of the other types of online services that games on
mobile devices typically connect to. While we won't be covering these in depth, it's still
worth giving them a mention in order to form a better picture of what is possible.
Supporting social gaming networks
Social gaming networks such as Apple's Game Center or cross-platform solutions
such as Scoreloop or OpenFeint have become commonplace in many mobile games.
In the following sections we will look at some of the possibilities we have available
in Marmalade projects for these types of services.
Using Apple's Game Center
One of the most well-known social gaming systems in the mobile games world has to
be Apple's Game Center ( http://www.apple.com/game-center/ ). Unsurprisingly,
this system is solely devoted to iOS-based devices, so if you are developing a game
for iOS this is probably going to be your first choice for support.
 
Search WWH ::




Custom Search