Results 1 to 4 of 4

Thread: Creating multiplayer game, don't know a thing about multiplayer, looking for advice

  1. #1
    Join Date
    Mar 2019
    Posts
    22
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Question Creating multiplayer game, don't know a thing about multiplayer, looking for advice

    Hello !

    so i decided to make a Ludo game for my graduation project, i want to make it so that player can play vs pc ( 1 player vs up to 3 AI ), now all those things i believe i can handle but what the problem is, i want to add multiplayer for this game, but i don't know where to start and what to look for exactly, i searched for some stuff on google and so far i haven't found anything and im still lost... Can anyone please give me any kind of advice, any kind of website or video from which i could learn how to set up multiplayer for my game. I really don't like networking so i want to make the multiplayer part as short and less complicated as possible, if that is even a choice....

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,243
    Thanks
    303
    Thanked 866 Times in 853 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Creating multiplayer game, don't know a thing about multiplayer, looking for advi

    I really don't like networking
    But you are going to have to learn it, but I don't think there will be any way to communicate between different instances of the game playing at the same time on different computers.

    Making a multiplayer game is hard. I found a research paper here that discusses some of the architectural design requirements. Maybe that and some of the references in it will help get you started.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Mar 2019
    Posts
    22
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Creating multiplayer game, don't know a thing about multiplayer, looking for advi

    Thank you, I'll go through it and see if it helps. And i forgot to mention but regarding the multiplayer thing it doesn't have to work over the internet, LAN would be just as fine, for my graduation project it's required for game to be played by for example 4 players, but each player has to play the game on their own PC.

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,243
    Thanks
    303
    Thanked 866 Times in 853 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Creating multiplayer game, don't know a thing about multiplayer, looking for advi

    There's really no difference between "work over the internet" and working over LAN, except dealing with issues of security and firewalls. You still need some kind of network-based communications protocol.

    From what I read, you can have two different models:

    1. Client-server based, where a server maintains the state of the game and each player, and keeps everything synchronized or
    2. Distributed, where there is no central server, and game and player state is held by all of the players


    There are advantages and disadvantages to each model.

    In a client-server design, the server always has to be running so clients can connect to it (or the first player to sign on automatically starts the server on their PC), and the server listens for broadcasts from clients requesting to join. All the game complexity is in the server, and the clients only have to be aware of their own player's view of the world. But a client-server model may not scale very well - the more players added, the higher the level of communication and the more state the server must maintain. And if the server goes down, the whole game goes down.

    In a distributed model, there is no server, so the protocol has to be implemented so that all players are connected in some way to each other. Any player can come in or leave at any time without affecting the overall running of the game. But now every instance of the game must maintain the state of the game, so the executable is more heavy-weight. A distributed design could also scale better, for example, if players only need to know about other players who are "near" each other in the game world, then that player can ignore updates from players who are too far away to matter.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 3
    Last Post: 11th September 2019, 23:28
  2. Turn Based Android Multiplayer Game
    By markytools in forum Qt Programming
    Replies: 1
    Last Post: 6th January 2016, 21:46
  3. Threads or Event loop in multiplayer hangman game
    By TheIndependentAquarius in forum Newbie
    Replies: 6
    Last Post: 1st March 2014, 09:33
  4. newbie in creating 2d adventure game..
    By skyisthelimit in forum Newbie
    Replies: 3
    Last Post: 19th May 2011, 15:22
  5. Advice in creating a Book Organizer App
    By rdelgado in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2011, 22:27

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.