Now that we have tamed that, the rest will be easy. Let's move on to the leaderboard and credits. These will be very easy compared to the levels. Most of the hard work is done already. We will work on them simultaneously, as they are so similar. So, let's start with the JSON objects. They copy the same format we used to load the objects in level1.json
. Only use one object set, and the data set includes person
and credit
. I'll use my family, because they deserve the credit for allowing me to write the book. See my following example:
{ "objectgroups": { "credits": { "objects": [ { "person": "Ben LaGrone", "credit": "Author" }, { "person": "Anel LaGrone", "credit": "Wife" }, { "person": "Daphne LaGrone", "credit": "Daughter" }, { ...