|
-
Dec 15th, 2002, 06:43 PM
#1
Thread Starter
Fanatic Member
A Multiplayer Console Game?
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
-
Dec 15th, 2002, 07:13 PM
#2
Hyperactive Member
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
-
Dec 15th, 2002, 07:18 PM
#3
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 15th, 2002, 07:23 PM
#4
Thread Starter
Fanatic Member
What I ment by possible, was, is it possible to do without making a windows app, just the console
-
Dec 16th, 2002, 05:47 AM
#5
Oh.
Networking is possible. Only the options for the game itself are limited to pure text,
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 16th, 2002, 09:50 AM
#6
Fanatic Member
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...
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Dec 16th, 2002, 05:27 PM
#7
Have fun doing an ASCII art game.
Not that it is impossible, but...
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|