In my last Unity post, I discussed working with the Facebook API. My thought at the time was that it would be a good way to exchange data between users. While it may be possible to do that with the Facebook API, I don't believe this is its primary purpose and anyway, the Facebook tutorials recommended using Parse.com. So I looked at parse.com and I love it. Here's their description:
The Parse platform provides a complete backend solution for your mobile application. Our goal is to totally eliminate the need for writing server code or maintaining servers. If you're familiar with web frameworks like ASP.NET MVC we've taken many of the same principles and applied them to our platform. In particular, our SDK is ready to use out of the box with minimal configuration on your part. Parse's Unity SDK makes heavy use of a subset of the Task-based Asynchronous Pattern so that your apps remain responsive...
It's very simple to setup and it's free! Well, free to develop on... If you get to a point where you need to hold a bunch of data, then they charge you. It's not going to solve real-time data syncing, instead it offers task based data retrieval. A request needs to be sent with each write and query to the database.
It's so simple that I created registration and login forms for my game after a few hours of coding. My game will be using its online database for backing player's save game as well as facilitate trades between users. I say backup the player's data because the data will only update upon downloading an existing game to a new device, closing the game, and after trade between users. My thought is it'll cut down on traffic. Locally, I'm using XML to save the player's data using C#'s XmlDocument class, which is also really simple to use. My next goal with Parse is to get a many-to-many relationship stored so that players can conduct trades and a one to many relationship for players' inventory. Parse has its own query structure that I haven't worked with yet, but seems pretty straight forward.
Before I get to that, I have to get the rest of the game mechanics worked out. I have resource collection functionality I need to design and implement. I decided on three locations where one can collect resources: Beach, Forest, and Mine (not unlike Happy Street). Each of the three will have three resources a user can collect. A fourth location, City, will be where a player can put those resources to use either by purchasing buildings or crafting new items from simpler ones.
Anyway, lots of stuff yet to be done with regard to this multiplayer aspect, but I wanted to share my experience and give my recommendation for Parse. I did also get through all of the Facebook Unity tutorials and they were pretty straightforward as well. I intended to get back into Facebook to implement promotional features, but as more as a finishing touch.
They suppose you may lose five or six times in a row — but whenever you win…you aren't going to do it just quickly as}. If {you are|you're|you may be} studying this blackjack technique guide and you are a beginner, ought to be|you must be|you must be} afraid of high-stakes games. 1xbet korea At its coronary heart, this casino classic is a simple recreation of addition with some rudimentary parts of strategy to hold it fun. Players try to beat the vendor by getting near 21 factors with out going over. If the whole of your playing cards exceeds 21 then {you are|you're|you may be} stated to have “bust” and your hand is folded and your wager is lost. The vendor can also bust underneath the identical circumstances.
ReplyDelete