• 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.
Sign in to follow this  
Followers 0
Sid_TheBeginner

Programming Language for Multiplayer Programming

9 posts in this topic

Which Languages are used for specifically Multiplayer Programming in Games? I've basic knowledge of Computer Networks and would also be having Advanced Computer Networks soon and also "High Speed Network Architecture and Protocols, Neural Networks later" in my college..Will these subjects help me in learning Multiplayer Programming?
I'm interested in Networking altogether. So how does Networking come in games and which languages are used?
I'm new to programming and have begun with C++. Sorry for not narrowing my question. In short please enlighten me about multiplayer programming in games...
Thanks,
--Sid
0

Share this post


Link to post
Share on other sites
I'm currently looking into that topic too.
I don't think it's a question of what language to use for it. At the moment I'm trying to get some open source examples for network architecture and it seems most things you will find there are c++.
But I think basically any language which features some network capabilities, like TCP/UDP sockets for example, should be fit for programming multiplayer games of any genre.
It really depends on your understanding of networking mechanics, so yeah, I think those classes you are going to attend at your college will be very beneficial for you.

I would suggest, just pick any language you are the most comfortable with, and just start making any networking-related little programs, like a little chat application or anything like that. Edited by Gazu
0

Share this post


Link to post
Share on other sites
Hey thanks for your reply! I'm currently learning C++ The learning curve seems steep. But I'm just pushing myself [img]http://public.gamedev.net//public/style_emoticons/default/huh.png[/img] When a large program runs I'm motivated else a bit restless [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img]
0

Share this post


Link to post
Share on other sites
[quote name='Sid_TheBeginner' timestamp='1340638028' post='4952679']
Which Languages are used for specifically Multiplayer Programming in Games? I've basic knowledge of Computer Networks and would also be having Advanced Computer Networks soon and also "High Speed Network Architecture and Protocols, Neural Networks later" in my college..Will these subjects help me in learning Multiplayer Programming?
I'm interested in Networking altogether. So how does Networking come in games and which languages are used?
I'm new to programming and have begun with C++. Sorry for not narrowing my question. In short please enlighten me about multiplayer programming in games...
Thanks,
--Sid
[/quote]

C++ doesn't include sockets so you will have to use either the socket library that comes with your OS (Winsock for windows) or a crossplatform wrapper library.

Sockets allow you to send data from one machine to another over the network. To make a networked multiplayer game you need to figure out what data you have to share and how to share it (a client-server model is probably the easiest).
0

Share this post


Link to post
Share on other sites
One way to start is to take a look at some multiplayer library (something like RakNet or similar), and see how it would work in a simple game (like pong).
0

Share this post


Link to post
Share on other sites
Networking by itself is generally not a significant consideration when choosing a language (or, more likely, a library) for a new game.

Other things are far more important, such as (in decreasing order of relevance):

- What platform(s) are you targeting?
- What kind of game is it? Turn-based? Real-time? 2D? 3D?
- How important is performance?


If you're targeting, say, Android or iOS devices, your language options are going to naturally steer you towards Java and Objective-C respectively. If you're on the Xbox 360 or PS3, you're in for C++ and maybe some versions of pure C. On the PC, if you're doing a desktop game, sky's the limit; use whatever you like. If you're doing a browser game, be prepared to choose between Flash/ActionScript and HTML5/JavaScript.

The type of game also matters. You can do multiplayer 2D games just fine with something like Python or Ruby or whatever other language you fancy. If you want to do a hardcore realtime 3D shooter with all the latest fancy effects, you're back to C++ (or using a pre-built engine, which is [b]far[/b] smarter than trying to write your own).

And of course performance can always play a role. As before, if you just want a simple game, use a powerful, high-level language that you already know. Even a good chunk of more complex, action-oriented, graphically-intensive games can be done in languages like C# or Java with ease; c.f. XNA for example.

Basically, C++ is a waste of time unless you're trying to target cutting-edge games on current-gen or next-gen consoles. If you don't fall into that camp, use the language you know best (or like best) and just pick a networking library for it. Netcode can be written in basically anything.
1

Share this post


Link to post
Share on other sites
Thanks for all the wonderful replies. I think I'll stick with C++ [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
0

Share this post


Link to post
Share on other sites
If you aren't yet very comfortable with all the features and idioms of your language, you should not also start trying to do multiplayer programming. Multiplayer programming adds a distributed systems aspect to your game, which adds as much more complexity and failure possibilities as you already have. Experience shows that trying to learn it all at once doesn't work.
0

Share this post


Link to post
Share on other sites
[quote name='Gazu' timestamp='1340641377' post='4952693']
I'm currently looking into that topic too.
I don't think it's a question of what language to use for it. At the moment I'm trying to get some open source examples for network architecture and it seems most things you will find there are c++.
[/quote]

I have some open-source, marshalling and networking code [url="http://webEbenezer.net/build_integration.html"]here[/url].
1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0