This is the second post in this series. Please read the first post before continuing.
Before actually working inside Stencyl we must declare our game on the Nuggeta WebPage so that we can download the API files needed for the Nuggeta Extension.
Head over to http://www.nuggeta.com and Sign Up for a developer account. The process is NOT automatic, so be patient for a few hours.
In the mean time I would like to mention some of the things that can be achieved using the Nuggeta API:
- Turn based synchronous or asynchronous games. Synchronous works for a single gaming session like the game we're making, while Asynchronous games can last for several gaming sessions like RPG's.
- Social networks integration. We can allow our players to play as guest users or log in using their Facebook, Google, Nuggeta and soon Twitter credentials. The ability to challenge a friend from either social network and posting on the wall for facebook or google users is now easier than ever.
- Works on all platforms, which means we can port our games without changing a single line of code.
- Chat system. We can send messages to all the connected players or to a specific one.
- Achievements. Encourage players to explore your game in new and interesting ways
- Leaderboards. You have to show them who's the boss in your game :)
- Virtual Store. You can create your goods on the Nuggeta webpage or even add new ones without having to create a new version of the game to include them.
- Cloud Data. We can save useful information in the Cloud like progress or preferences.
- Server Logic. While we won't be using it in our game, Nuggeta provides the ability to code your own server logic in Java.
- Earn money. You can earn money if you upload your game/s to play.nuggeta.com without adding a single line of code.
NOTE: Not all these features are yet integrated in the Nuggeta Extension at the time of this writing and some features will only work if you customize the extension for your specific game.
There are many more things that could be accomplished using Nuggeta, and you can find more information on their website.
But let's get back to creating our game on the Nuggeta website:
After you've received confirmation on your created account head over to the Developer page and Sign IN.
Click the Create Game button on the top left side. You should see something similar to this:
GAME ID is only used for the API files that we will download and can be any name we choose. Don't create another game using the same GAME ID. I decided to put "skill" in my GAME ID. Don't use Upper Case letters.
NAME is the commercial name of your game, so I put "Gijutsu" in the NAME field.
Hit CREATE after you've finished. Note that we can't delete a game after it was created.
After the creation process is completed you will be redirected to the Client API page where you can download the API files needed by the Nuggeta Extension, but first let's explain where and how we can add various parameters to our games.
In the above picture we have 2 buttons and 5 tabs.
The Download Libraries button will take us to the Client API page where we can download our API files, and the Deploy Sandbox button will activate our game on the Nuggeta servers. After we've downloaded the API files we must press it, and whenever there is a major change in our game definition the website will inform us that we need to press it again.
I'll provide a quick overview of the Nuggeta Game Definition page in the next post.