Developers
Want to aid us in creating a central repository in high score information? Maybe you'd like to get an agile, encrypted, high score board up and running for your game as soon as possible. Perhaps you'd like to bring your games to the next level by adding a community dimension to them- allowing them to compare scores against friends, challenge other players, get email notification when players beat their score, and link all of their scores across all games to their unique profile.
Whatever your motivation is, the Bagunk High Score System is perfect for your flash game!
Your Games Under Development
Once you have projects registered as under development they will show up below.
Getting Started - Instructions
Download the Bagunk High Score Code
The library code was written and tested for Flash MX 2004 and above. It includes 2 external .AS files that need to be included with your project and a sample .fla file.
Setting Up the Code
Setting up the code in Flash is a piece o' pie. All you need to do is make sure the two external actionscript files, BagunkScores.as and ScoreEncrypter.as are in the same folder as your .FLA project.
Check out BagunkScoresExample.fla for an example on how to set it up, but in full detail:
All you need is to set up your BagunkScores object where you want to send the score data by entering in your key code and game ID for this project:
// Set up the Bagunk Score Object
var myScoreSaver:BagunkScores = new BagunkScores();
myScoreSaver.SetCode("1234567890123456"); // Enter in your random code for this game
myScoreSaver.SetGameID(284); // Enter in the game ID
Then, you can set it up to call one of 2 functions on a button press. The first SendScores(), doesn't require the user to login, however it won't link their score to their Bagunk account. All you need to pass as parameters are the username and score.
myScoreSaver.SendScores(_root.player_name_txt.text, playerScore); // Doesn't require the user to login
The second function, UserLogin(), will pass the score to Bagunk where the user can log into the site to link their score to their account. All you need to give the function is the user's score.
myScoreSaver.UserLogin(playerScore); // Requires the user to login first
We recommend offering the players both options of submitting the score as in the example. Also, we recommend obfuscating your final .swf file before you release to help prevent cheaters from decompiling your SWF and stealing your keycode.
That's pretty much all there is to it.
Frequently Asked Questions
What is the high score system I keep hearing about?
The Bagunk High Score System allows developers to send the score data from their games to Bagunk.com to be stored, processed, and used by everyone.
It allows both Bagunk users and non-users to store their scores. However, Bagunk users have a whole group of features available to them aside from just linking scores to their unique profile. This includes features such as getting a separate score board to see how you compared against friends, a challenge a friend feature, and the ability to get an email notification if a friend beats your best score.






