Summary
This chapter walked through the creation of a game and using the Facebook API to personalize it. We walked through the development of a game first, without using the Facebook integration, and then layered on calls to the Facebook graph. This technique helps you focus on problems as they arise, enabling you deal with them independently from other aspects of your code (e.g. is it a problem in the response data from Facebook, or how my game code initializes a certain parameter). I also walked through an issue that came up in the code that was outside of the planning going in to the game. Thinking about your code and coming up with an acceptable solution is something you will encounter again and again, no matter if you are developing games ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access