+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 20

Thread: Project 1 - Game Network 1.0

  1. #1
    Guru Donovan has a spectacular aura about Donovan has a spectacular aura about Donovan has a spectacular aura about Donovan's Avatar
    Join Date
    Oct 2008
    Location
    Pahrump, Nevada
    Age
    16
    Posts
    635

    Project 1 - Game Network 1.0

    I will be posting each of my project on here one after another. After starting project one I will not post project 2 until project 1 is done and completed.

    Now, I am still not sure what I want to do here with project 1. I will either make this a gaming network all in its own or make it my code network to put up my projects. So here is the project code play with it check it out if you are new. My question is I would like this to be an online network is there anyway I can get like free hosting somewhere just to test it out? Also would I have to make special coding since it would be going online. I want it were you can login to a network with this console.

    Code:
    // Game Menu 1.0
    // Created by Donovan Simon
    
    #include <iostream>
    #include <string>
    using namespace std;
    
    int main()
    {
        string username;
        string password;
        string exit;
        string networkStatus;
        int playersinNetwork;
        
        playersinNetwork = 0;
        networkStatus = "Network Status: Online\n";
        
        do
        {
             cout << "                                Game Network 1.0\n\n\n";
             cout << "Welcome to 'The Game Network!'. This network was created\n";
             cout << "so the user could choose from a selected list of games,\n";
             cout << "then play the game after logging into the network. You\n";
             cout << "must be logged into the network before playing the game.\n\n\n\n";
             
             cout << "Please login to the Game Network.\n\n";
             cout << "Username: ";
             cin >> username;
             cout << "\n";
             cout << "Password: ";
             cin >> password;
             cout << "\n";
             
             if (username == "DarkAges" && password == "123")
             {    
                 cout << "Succesful Login. You may now choose from the list of games to play.\n\n";
                 cout << "People in the network: " << ++ playersinNetwork << endl;
                 cout << networkStatus << endl;
                 system("PAUSE");
                 system("CLS");
                 break;
             }   
             if (username != "DarkAges" && password != "123")
             {    
                 cout << "The username and password you entered is incorrect!\n\n";
                 system("PAUSE");
                 system("CLS");
                 break;
             }   
             if (username != "DarkAges")
             {
                 cout << "The username you have entered is incorrect!\n";
                 system("PAUSE");
                 system("CLS");
                 break;
             }   
             if (password != "123")
             { 
                 cout << "The password you have entered is incorrect!\n";
                 system("PAUSE");
                 system("CLS");
                 break;
             }
             
             }while (true);
             
             return 0;
             
    }

  2. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,702
    Blog Entries
    57

    Re: Project 1 - Game Network 1.0

    Quick observation: you are give a "hacker" information in your error messages. I would do something like:
    Code:
    if (username != "DarkAges" || password != "123")
             {    
                 cout << "Your login credentials are incorrect!\n\n";
                 system("PAUSE");
                 system("CLS");
                 break;
             }
    If you wanted to connect to a website or some-such, you are looking at learning how to do network programming. In particular, communicating via TCP/IP. You would also need to write code in a server-side setting to do the validation.
    Last edited by WingedPanther; 12-15-2008 at 12:58 PM. Reason: answer the question asked
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  3. #3
    The Crazy One TkTech will become famous soon enough TkTech's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Age
    18
    Posts
    1,549
    Blog Entries
    1

    Re: Project 1 - Game Network 1.0

    Also, I don't get this? Are you going to have a bunch of text based games? A virtual network loopback like VPN(Ie, Hamachi)?

  4. #4
    Programming Professional Lance is on a distinguished road
    Join Date
    Dec 2008
    Posts
    253

    Re: Project 1 - Game Network 1.0

    Nice try, Donovan. I am sure you'll achieve it one day.

    I'll give my 2 cents when I have more time to dispose of. Bye for new.

  5. #5
    Guru Donovan has a spectacular aura about Donovan has a spectacular aura about Donovan has a spectacular aura about Donovan's Avatar
    Join Date
    Oct 2008
    Location
    Pahrump, Nevada
    Age
    16
    Posts
    635
    I hope this works out.. I think I am getting a bit ahead of myself with this network project But hey doesn't hurt to try new things

  6. #6
    Programming Professional Lance is on a distinguished road
    Join Date
    Dec 2008
    Posts
    253

    Re: Project 1 - Game Network 1.0

    Yeah, it's indeed a long journey. Now you are taking on GUI too. Game programming is more than GUI only, you will also need to use GL or DirectX stuff. Net work is actual a much much smaller challenge. I was under the impression that C++0X is going to incorporate the Boost Asio network libary, so it will become even easier. GUI, however, will remain complex for many years to go. C++ stardard committee simply doesn't have the resource to create a standardized GUI or even a GUI standard. I myself is in constant search of a good crossplatform C++ GUI.

    Do you have any idea what kind of a game you're going to build?

  7. #7
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,702
    Blog Entries
    57

    Re: Project 1 - Game Network 1.0

    Game programming doesn't necessarily require DirectX/OpenGL. There are a lot of games with 2D graphics that require very little from a graphics standpoint.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  8. #8
    Programming Professional Lance is on a distinguished road
    Join Date
    Dec 2008
    Posts
    253

    Re: Project 1 - Game Network 1.0

    Thanks for the correction, WingedPanther.

    I actually suggest that he go with text terminal for now. GUI can be a big distract to his learning C++. Catching 2 fishes at the same time probably is not a good idea. He has mostly learned some C subset stuff of C++. It's more helpful to move to some good textbook that teaches the OO part of C++, probably a little bit of GP, limited to the using of STL. And then get back to the topic he is interested, game programming, and relevant GUI stuff.

    But since what he is interested is game programming, it could turn out to be the best way sticking with it.

  9. #9
    Programming Professional Lance is on a distinguished road
    Join Date
    Dec 2008
    Posts
    253

    Re: Project 1 - Game Network 1.0

    He is only 14 so he has plenty of time trying different things and ways. The boy who wrote DivX decoder definitely did not learn C as advocated by experts. Who knows

  10. #10
    Guru Donovan has a spectacular aura about Donovan has a spectacular aura about Donovan has a spectacular aura about Donovan's Avatar
    Join Date
    Oct 2008
    Location
    Pahrump, Nevada
    Age
    16
    Posts
    635

    Re: Project 1 - Game Network 1.0

    Hehe, I tend to jump out of my seat when I learn new things hah! Don't worry about this topic though I got carried away with the greatness of c++ I really need a good OO book though. So far I have the basics down I just need to start getting into more OO stuff. If I can get to the point where I know how to start coding Mushes that would be awesome. I think I have an idea on it but I would constantly be stopping to think on what to do haha.

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 8
    Last Post: 05-30-2009, 11:56 AM
  2. How to design a set of classes for a project.
    By WingedPanther in forum Tutorials
    Replies: 8
    Last Post: 12-11-2008, 05:19 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts