Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by TheCallipo · Dec 13, 2016 at 08:45 AM · androidnetworkingmultiplayersocial

How does the Networking in Games like 'Draw Something' work?

Good Morning lovely Developers.

I recently had an Idea about an Android Game that uses the same Multiplayer concept like 'Draw Something'.

What I think about is like an Offline Game that turns Online one time if the player wish so. (sorry for bad explanation)

You basically have one Image ready with things in the background you have marked that one random player has to find.

Question is how to implement this in Unity that I can send this Image over Networking with the stored Data to some other player (I assume he must be logged in or something?) so he gets something like a notification and he can start the game and do whatever the game says to do.

How to find such a player, when he is currently not in the game?

And on the transmitter side you can start other games etc. until you recieve a notification if opponent has beat your game and sends you an image.

I havent started this project yet (except for some UI design) so there is nothing I can show you for building up your thoughts.

Just want some thoughts about how to start with the networking, what to read for this topic or just a script (prefer C#) of your previous projects I can study on.

This would be really helpfull.

Thank you and have a good day :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by sumitb_mdi · Dec 13, 2016 at 04:09 PM

So broadly the online games are divided into two major categories:

  1. Realtime

  2. Turn Based

The first category games are like Player vs Player (PvP) battle, Racing games, etc. Till now, you might have figured out that your game falls under the second category.

Both the categories further divide into sub-categories, but lets dissect second category, as that is your focus right now.

The Second category is broadly divided as :

  • 2.1. Synchronous turn based.

  • 2.2. Asynchronous turn based.

(These terminology are widely accepted, there is no standard documentation, so some people may call it something else, but let's stick to the commonly used terminology)

Let's understand them with example.

Synchronous Turn based: Each player have their turn and can take permissible game action in a limited time. Eg: Poker.

Asynchronous Turn based: Each player have their turn, but can take infinite time to take permissible game action. Eg: Draw Something, Chess (if not time bound), etc.

Why I am writing this theory ? Because once you get the terminology correct, you can dive into the plethora of articles over web; on each of them

A good news for you, is that this last category is easiest to implement. There are already multiple services that provide Async Turn based framework.

Like :

Google Play Services

Apple Game Center

Facebook

Amazon Web Services

In mostly all these frameworks, a common shared state is passed to the players (client), where only a single player is eligible to take actions and change that shared state at a given point of time, which is then passed to next player until the game ends.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TheCallipo · Dec 13, 2016 at 09:04 PM 0
Share

you sir deserve a giant cookie. this helped me a lot since I didn't really know how to search for this. google spit out completly unrelated results for "kinda offline multiplayer". thank you

avatar image sumitb_mdi TheCallipo · Dec 14, 2016 at 02:09 AM 0
Share

Good to know that this helped you. Happy Coding.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

161 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Android multiplayer using WiFi 5 Answers

connecting 2 android devices without Internet 2 Answers

Multiplayer networking for Android 0 Answers

[HELP] Problem in multiplayer networking code in c# 0 Answers

How to add realtime game events without updating build? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges