So in this release of Invasion Imminent I’ve recently done the following:
- Added leaderboards/high scores
- Added usernames
- Added PowerUp sound effects
- Added randomized spawning
For those of you who do not like reading, here’s a video showing what I did.
Adding high scores is the main update in this release of Invasion Imminent. Adding the high scores to the game I made in Unity using C# was a bit of a challenge. It wasn’t a lot of code or anything, there just wasn’t much around to help me out with the Unity networking code. I basically made it to where it sends the users in-game information to the server. Once the server receives the score, it calls a PHP script using GET variables to pass through the players information. Once the PHP script is done, the high score is added to the database.
I had to use PHP scripts because Unity does not have any way to access MySQL databases. Imagine that huh. There’s a lot of things that are lacking in Unity when it comes to third party plugins and DLLs. But that’s not their fault, it’s just the way things are. But I would much rather work with the disabilities of Unity than try to make this stuff from scratch anymore.
Hopefully I can improve this game again some time really soon.