Design - Web Player Facebook app with Godaddy hosting and MySQL

I’m a web app noob, but am fluent in C++ / C#.

I have a Facebook app I’m crating that uses the Web Player and interfaces with MySQL on my Godaddy hosted domain. I’m able to retrieve login info and scores from the DB into the Unity app just fine.

My next step is to let users choose someone to battle and let other users vote on who should win.

I need to know what I need to do to have the server somehow track the battle and resolve the winner when the time expires. Do I just write a php script that perpetually runs on the Godaddy hosted server somehow? I don’t want to have some C# app running on my PC at home that manages it. Surely there’s some way to do it server side.

Thanks!

1 Answer

1

I would think your app would send updates via WWW to your server scripts to inform it of such things. You can track all that in the DB. If it’s really single player (no peer-to-peer networking), that’s it. If multiplayer, you might consider a headless server, or contracting a server-service that does run such things for you. I’ve never used them, don’t even know their names, surely someone here does. In any case, then you’d probably do both: networking Unity style and WWW to your DB.