Simple online game 2d
hello.. i'm developing a 2d game and thinking of making it to be online. It's just a simple 2d game. what i want to do is just to make it online and save the high score. is there any recommendation on where i should start and what database i should use? thanks.
Answer by ZpknTr · Oct 25, 2017 at 09:42 AM
@leebronds im trying to make and online game right now and afaik the best way to do this u need:
a dynamic web site made in asp.net or jsp to send information from client to server.
a database located in the same machine with the web application.
Actually you can use the database directly... But that means if anyone decompiles ur game (which ppl does a lot), they can see ur username and password for sql database... Thats why u need to use a web application and use urls to post/get information... In web applications u can send a request like www.ursite.com/api/login/username=leebronds?password=123456/ and the web app can run calculations then deny/allow the user. Also it can return values for ur game... Here is the link for WWW in Unity https://docs.unity3d.com/ScriptReference/WWW.html