Interested in making games..

This is a discussion on Interested in making games.. within the C++ Programming forums, part of the General Programming Boards category; Hi, If anyone made a simple game (any kind) by using microsoft visual C++, can that person post your code ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    51

    Interested in making games..

    Hi,

    If anyone made a simple game (any kind) by using microsoft visual C++, can that person post your code here? (Including all the files that I will need to compile and run the game) I'm trying to make a simple game for fun but I don't know where to start since I've never made a game before. I think I will learn best if I have a concrete example. If I make any modification to the game, I will give due credit ..


    Many thanks from a newbie programmer who have just found an interest in making game thanks to EnrionD...

    To EnrionD: Do you think you can post or email me all your code so I can compile the game myself? I'm using microsoft visual c++ and you're using borland c++, would I run into problems with libraries??

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    51

    Conio.h

    Hi,

    Microsoft visual c++ 6.0 doesn't seem to have a conio.h library..
    Can I download it somewhere? Plus, what does the conio.h library used for?

    Thx.

  3. #3
    Unregistered
    Guest
    Where did you get the notion that i was doing it in Borland?
    Check my sig =)

    Anyways im in the middle of updating it and right now its ::scchhh:: SECRET ::scchhh:: but take a look in the My First Game thread. I posted the code of one of the earlier versions there.
    Until i complete FightGame 2.0 thats all you get =P

  4. #4
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Ooops. That was me by the way =D

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> visual c++ 6.0 doesn't seem to have a conio.h

    It does have conio.h, _getch() for example, is prototyped in conio.h.

    The file is, (unless you gave it a different path when installing), Program Files/Microsoft Visual Studio/VC98/Include/CONIO.H.

    If you do not have it, I would suggest re-installing your VC++.

    Not relevent to this particular request but in general...

    http://www.cprogramming.com/boardfaq.html#header

    >>> what does the conio.h library used for?

    Open the header and look to see what is prototyped in it!
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  6. #6
    Registered User
    Join Date
    Mar 2002
    Posts
    51
    Hi EnrionD,

    I've tried compiling your code, but I'm missing these libraries..

    //#include <conio.c>
    //#include <conio.h>
    //#include <conio_mingw.h>

    Are you using microsoft visual c++??
    Do you know where I can download those libraries??

  7. #7
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    VC does have conio.h as Adrian pointed out. However, conio.h is nonstandard, which means each compiler has it's own functions in there. You won't find Borlands functions in Microsofts header. If you need Borlands functions like textcolor and clrscr, look into the FAQ and visit Sunlights page ( link should be somewhere in the FAQ, too ).
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  8. #8
    Registered User
    Join Date
    Mar 2002
    Posts
    51
    Oh yes, I found conio.h but I wasn't able to find conio.c..
    I've always had the impression that '.h' file would always have a corresponding '.c' file since the '.h' file is only a header file..
    Please correct me if i'm wrong.... heh, I'm kind of new at this

    plus, where is this library, conio_mingw.h...

  9. #9
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  10. #10
    Registered User
    Join Date
    Mar 2002
    Posts
    51
    Huh? What does the link mean?
    Heh, sorry if i'm spamming ... my bad

  11. #11
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> I've always had the impression that '.h' file would always have a corresponding '.c' file since the '.h' file is only a header file..

    Not necessarily, depends on the compiler vendor. Not true in VC++ for example.

    >>> where is this library, conio_mingw.h

    As Niels pointed out, conio.h is a non standard thing. mingw is the compiler underneath DevC++ I think, therefore I am guessing that they have a quasi standard conio.h which includes some of the common routines, and a very compiler specific version which contains some oddballs.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  12. #12
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    I posted the link to your other thread on the same topic because I had commented there. Now, you can see the problem with multiple posts! We are discussing the same thing in two different places out of phase.

    If you like, I can merge the two threads together, or you can decide which thread you want to continue with and I can close the other for you.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  13. #13
    Registered User
    Join Date
    Mar 2002
    Posts
    51
    Oh yes, that is bad...

    Merge the thread if you will,...
    adrian: are you the moderator of this forum? No title, no avatar?

  14. #14
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> Merge the thread if you will,...

    Done.

    >>> are you the moderator of this forum?

    If I wasn't, I wouldn't have been able to do that!!!

    There is a list of moderators, errrrmm, Hey, where the hell did that go? I'll log it!
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  15. #15
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Actually, all you will need is conio.h in MSVC i think. Its because i use another compiler that i have multiple conios

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Making great graphics
    By MadCow257 in forum Game Programming
    Replies: 1
    Last Post: 02-20-2006, 10:59 PM
  2. Making Board Games...
    By Junior89 in forum Game Programming
    Replies: 28
    Last Post: 12-31-2005, 11:20 AM
  3. going about making PS2 games
    By DarkViper in forum Game Programming
    Replies: 22
    Last Post: 02-03-2003, 03:31 PM
  4. c++ games comparable to psx games?
    By anarchyhollow in forum Game Programming
    Replies: 17
    Last Post: 01-08-2003, 07:49 PM
  5. making money and playing games...
    By Aran in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 09-10-2001, 07:13 PM

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