Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - laiden

Pages: [1]
1
Network / I'm about to start making my first game project.
« on: November 19, 2016, 02:06:56 pm »
Hey! I've been lurking for a while, but haven't really found any examples of Network Module packets and sockets that suit me.

I'm planning to make a 1v1 roguelike game (turn-based!)
What type of packets is preferable? There would be only two players and no other connections, but the player should be able to play with a friend without starting a server application externally. Just like Steam's co-op, or whatever. Preferably it should be as simple as possible: Player 1 starts the app and tells his username. This username is sent to a webserver and associated with IP address. Player 2 types in the username of Player 1, and connects to the Player 2. The game starts if both agree to it. Then data is being exchanged depending on the game state, etc.

How do you implement such thing? Can you point me in the right direction? Maybe a code snippet will do, thanks!

Pages: [1]
anything