Hi all,
I’m new to developing games, and i’m making one as a MSc project. I intend for it to be a web based 2D game, with a top down, RPG feel.
I’m hoping to use server side scripting to have user accounts so that player data about character, inventory, progress etc, is stored online so they can log in and continue playing from where they left off.
I’m getting my head around the basics of Unity at the moment, but I’m not really sure how to proceed with regards to the Server stuff. Everything I see on unity with server is related to multiplayer gaming, and although i might want to extend the game eventually to involve some multiplayer, at the moment all i want is what i mentioned above.
So i’m hoping someone who knows more than me can point me in the right direction.
Well, firstly, you don’t need any server-side stuff if all you want is for people to continue playing where they left off. Simply using PlayerPrefs would accomplish that.
If there’s some other reason you need to store data on the server, then you’ll need to write some server-side code (PHP or perl or python or whatever), and communicate with it using the UnityWebRequest class, or via the browser scripting interface.
Forgive me for interjecting, I was planning on learning PHP for server side programming. Is that the best for Unity games, or should I pick up Python instead? I didn’t consider Perl, someone told me; despite being integrated into Unix, it is a dying language .
Yeah, Perl’s nasty. Python less so. But PHP is pretty standard; you won’t be doing yourself a disservice by adding that to your skills.
1 Like
Sounds good, I’m going to tinker with PHP a bit after I get through learning Git.
Thanks Joe