• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

Ishamael

Peer to Peer Connections

4 posts in this topic

Does anybody know of any good resources on the Web that''ll help me get started using peer-to-peer networking? I''m thinking of incorporating multiplayer capabilities in my next game, and just thought I should start learning now. I know there are lots of client-server tutorials/references out there, but I can''t find any peer-to-peer ones. Can anybody help? Thanks, Rand P.S. - Before you all start saying how peer-to-peer is aweful and slow and that client-server is much better, I''d just like to say that the reason I''m not using client-server is that I have no money to buy/rent a server ;-)
0

Share this post


Link to post
Share on other sites
Actually most network applications that seem peer-to-peer (including most games) are actually operating as a client/server architecture. It''s just that one program acts as a server. In practice running a server for a client-server network that replaces a peer-to-peer network doesn''t take that much more processing power/bandwidth than the equivelant peer-to-peer version.

Another reason that you might not be finding that much information on peer-to-peer networking is because there isn''t really all that much to it. Just what kind of information are you looking for? Most of the basics will remain the same. (Unless doing a multicast or broadcast protocol.)
0

Share this post


Link to post
Share on other sites
Well, I''m basically looking for information on how to structure a p2p game. I''ve never actually done any multiplayer networking before, so I''m just trying to learn the basics. Specifically, how would I find out who else is playing the game so it could connect to their IP address? And how would I handle a connection to lots of other remote computers at once? Are there any tutorials or resources out there that talk about these things?

Thanks,
Ishamael
0

Share this post


Link to post
Share on other sites
Well, in a peer/peer architecture, there''s no central authority for determing players/active games. So here are some options:

If all the players are on a single data-link segment of a LAN, then you can perform a broadcast on that link saying, "I''ve started a game, join me." in either IPX or IP (or Appletalk if you''re feeling evil).

For IP over the Internet, you''ll pretty much have to make the players enter the IP address of the other computer(s). Hopefully just one host, and if you''re really set on doing a full peer/peer network, that host will tell you the IPs of all the other currently joined computers.

A third option is to register a multicast IP and negotiate games over that. On the downside much of the internet doesn''t route multicast still, so you''ve got a whole mess of people unable to join games like that. Also it''s a pain to get a multicast IP allocated to you.

Otherwise you need to setup a server for negotiating games (which you don''t want to do) or rely on third party methods. Ex: I think you can get ICQ to spawn applications with command line parameters for you. So you can make your program "ICQ friendly" or something like that so you can automatically hook up with people on your contact list.

As for handling connections to lots of other computers, there are several options.

Over a LAN you can use broadcast packets.

Otherwise over the internet, you can either have all the computers form connections with one host, who will then re-send relevent information from the other computers properly (a client/server configuration actually) or you can have each computer send packets to all other relevent computers. (Using UDP or some other datagram method works best for this kind of work.)

Once you''ve got that information is a matter of finding out how to perform each of the kind of operations. If in using Windows Sockets I recommend "Winsock 2.0" by Lewis Napper.
0

Share this post


Link to post
Share on other sites