Results 1 to 7 of 7

Thread: A Multiplayer Console Game?

  1. #1

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734

    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

  2. #2
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    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
    VS.NET 2003

    Need to email me?

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  4. #4

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    What I ment by possible, was, is it possible to do without making a windows app, just the console

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  6. #6
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802
    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

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width