1. RyuShinobi500

    OP RyuShinobi500 Aspiring C++ Programmer
    Member

    Joined:
    Oct 25, 2019
    Messages:
    613
    Country:
    United States
    As the title reads I am wondering how I would go about implementing a multiplayer function in C++ for a 3ds homebrew I have no knowledge of wireless connections but if someone could point me in the right direction that would be great thank you
     
  2. RedL

    RedL Advanced Member
    Newcomer

    Joined:
    Aug 5, 2018
    Messages:
    99
    Country:
    France
    Nothing in the 3DS SDK regarding TCP/UDP connections to a remote server?

    Naive approach for a real-time game:
    • Centralized server.
    • (TCP) Create a game session.
    • (TCP) Join game session.
    • (TCP) Get infos regarding session (players, length, etc...)
    • Start game session at time X (relative for each player)
    • Loop
    • (UDP) Every second, SEND local movement every second to server.
    • (TCP) Every second, ASK server for infos (other player movements, current game session states, points,...) and use that to update the game on local side.

    Optimizations you can go for:
    • Keep a single connection open while the game session is playing.
    • Make your own small binary code to send/receive data about players movements.
     
  3. RyuShinobi500

    OP RyuShinobi500 Aspiring C++ Programmer
    Member

    Joined:
    Oct 25, 2019
    Messages:
    613
    Country:
    United States
    Okay thank you I will try this right now I am going to start small and try local play thank you for your reply
     
    RedL likes this.
  4. RedL

    RedL Advanced Member
    Newcomer

    Joined:
    Aug 5, 2018
    Messages:
    99
    Country:
    France
    No prob, have fun in your endeavours :)
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - implementing, multiplayer, function