My second game!

This is a discussion on My second game! within the Game Programming forums, part of the General Programming Boards category; I was bored one night so I said "hmmmm..." Then I was looking through some board games and saw connect ...

  1. #1
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    Wink My second game!

    I was bored one night so I said "hmmmm..."

    Then I was looking through some board games and saw connect four:



    So i sat down typed all night, got up in the morn and by dark the game was done. It is 1 or 2 players. The Ai is pretty good too.

    Here is the 4600 line: Four Connections
    Attached Files Attached Files
    What is C++?

  2. #2
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Don't every one jump in on this at once here...

    What is C++?

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Good job, and you did all of this in one night?

    But your AI doesn't recognize when there is a OO_O situation. It should fill up the _ spot.

  4. #4
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    IT DOESNT???? Oh crap.

    Well I did all except the AI in a few hours and the next morn it took me about, 5hrs to do the AI.
    What is C++?

  5. #5
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    IT DOESNT???? Oh crap.
    yeah but it might have just been in that particular situation...I only played two games...the first one the game messed up because I pressed O instead of a number and it got stuck in a loop to where no matter what I entered it wouldn't continue. The other time was the situation I listed. I would play a few more times, but I have to write a long essay still so I don't have a lot of time right now, plus I want to do a few other things that aren't boring like having to write an essay.

    Well I did all except the AI in a few hours and the next morn it took me about, 5hrs to do the AI.
    Well, I'd say that you have some dedication to be able to do that in two days!

  6. #6
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    uhh

    But now I cant think of what to do next...

    Oh good luck on that essay... AHAHAHAHA...
    [cough]

    K im better.
    What is C++?

  7. #7
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    yeah thanks...wanna do it for me...oh wait that isn't allowed is it...d@mn!

    you could learn an API (win32 API is recommend for your first API), you could go more indepth with the 'basics' of C++, you could make a pac-man game, you could make a frogger style of game, you could make a snake, you could can do many things...the possibilities are endless...well at least they are endless once you can do graphics.

  8. #8
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    win32

    Isnt that Windows programming?

    And how do I do graphics in Dos Games???

    What is C++?

  9. #9
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    oh I made a little thingy like this

    0***
    ****
    ****
    ****

    The you can eat up the thingies. But that was hundreds of lines just for that!

    What is C++?

  10. #10
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Isnt that Windows programming?
    yeah, but I know that a lot of people recommend it for learning your first API. The more advanced APIs that are popular are DirectX, OpenGl, SDL, Allegro, and a few others.

    And how do I do graphics in Dos Games???
    well, techinically you can't but if you get creative you can create some pretty cool things.

    Go here and go about half way down the page to download red_baron's game. You'll see that he made some creative use out of changing colors and using creative characters.

    This page has some really cool info on ASCII values to where you can use characters that aren't present on your keyboard.

  11. #11
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    uhhh...

    So ill be making text based games until I can program games for Windows????




    But what about old games like
    Doom wasnt that run in dos?
    Or a full screen window?


    If I must try and learn Windows programming, Anybody got any ideas where to get started?
    What is C++?

  12. #12
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    lol

    you can use characters that aren't present on your keyboard.
    Yah I accedently assigned 1 to an array instead of '1' andit print out a smiley

    What is C++?

  13. #13
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    www.winprog.org
    www.sunlightd.com

    Get Petzolds Windows Programming book.

  14. #14
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    So ill be making text based games until I can program games for Windows????
    Well, you'll be making text based games (using the console app) until you learn an API. The Win32 API is just one of the many APIs you can learn. I suggested it because it's recommend that you learn the Win32 API first. I guess it's easier than the other APIs to learn or sumpin. I really don't know much about it, sorry.

    Doom wasnt that run in dos?
    No idea.

    If I must try and learn Windows programming, Anybody got any ideas where to get started?
    Well, you'll still be using C++ with any API that you use, so you don't have to worry about. Although, learning an API is kinda like learning a new language (on top of what you already know and will be using (C++) ) in that you have to learn all of the new variable names and functions. You can go to gametutorials.com for some good Win32 API tutorials. I downloaded a bunch of them, and looked over them but I decided that I would be better off getting myself more familiar with the 'basics' of C++ first. It might be best for you to do the same, too.

  15. #15
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    ...

    Oh well im still pretty lost.



    API's arent just like header files??

    And will I be using the int main() any more or will this be completely new?

    Ah ill go to gametutorials and see whats there.
    What is C++?

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do the game engine and the api interact?
    By Shadow12345 in forum Game Programming
    Replies: 9
    Last Post: 12-08-2010, 12:08 AM
  2. Open Source / Semi Open source game idea. Help needed
    By CaptainPatent in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 05-16-2007, 11:44 AM
  3. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 03:46 PM
  4. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-25-2002, 12:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21