Is this possible.
I am very new to C++ and only know my way around console apps.
Is there a way to make a multiplayer aspect. Listening to ports, all that jazz.
Could u direct me to a tutorial. or just the functions that are required
thanks :)
Printable View
Is this possible.
I am very new to C++ and only know my way around console apps.
Is there a way to make a multiplayer aspect. Listening to ports, all that jazz.
Could u direct me to a tutorial. or just the functions that are required
thanks :)
I never made a game, but I made multipiped chat system in C++.
To do winsock, you need to include <winsock.h> and import wsock32.lib
You would need to find stuff about the following functions: bind, listen, connect, socket, send, recv, gethostbyname, htons, WSAAsyncSelect, closesocket.
These strucutres are very important:
sockaddr_in
As for the "is this possible" question, most commercial games are written in C++. Everything you see in Age of Empires, WarCraft, Quake, Unreal, Half-Life or your own personal favourite high-end game is possible in C++. If it's not possible in C++ then it's probably not possible at all.
What I ment by possible, was, is it possible to do without making a windows app, just the console
Oh.
Networking is possible. Only the options for the game itself are limited to pure text,
Depends on what you mean with "pure text"... Take a look at www.gametutorials.com and you'll see that you can actually do some graphics in the console, I guess that it's mostly ascii art, but with different colors you can get pretty far with that... So, yes, it's text, but it's not what I think of when I hear "pure text"... Just my opinion though...:)Quote:
Only the options for the game itself are limited to pure text
Have fun doing an ASCII art game.
Not that it is impossible, but...