My first game C++ game

This is a discussion on My first game C++ game within the Game Programming forums, part of the General Programming Boards category; Since i dont know what one is i guess i didn't!...

  1. #16
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175

    Smile

    Since i dont know what one is i guess i didn't!

  2. #17
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    But then how did u make all the animations and display the graphics? Did u use api instead? Or what technique? Pls tell me i really wanna learn, i am keen.

  3. #18
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175

    Cool

    God this strange you got 400+ posts and your asking me questions???

    All i used was the Windows Api i.e. BitBlt, GetWindowDC, CreateCompatibleDC, LoadBitmap and SelectObject.

    The reason i used these is that this is what i would have used if i where programming it in VB (Hint - VBprogrammer). Have a look at source, i posted it last night.
    VC++ 6

  4. #19
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175

    Question

    ninebit i dont think this is necessary as my program works off a windows timer, so as long as it is an almost desent processor it should run at the same speed. I have tried it on diffrent computers (from a IBM 230Mhz to a Dual 1.2Ghz athlon system) and they all run about the same speed.
    VC++ 6

  5. #20
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by VBprogrammer
    God this strange you got 400+ posts and your asking me questions???
    The number of posts has nothing to do with how good you are in programming...

  6. #21
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175
    True i guess, but i have only just started programming in C++
    VC++ 6

  7. #22
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050

    Thumbs up

    Wow! You did a tremendous job. That was a lot better than I was expecting.

  8. #23
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175

    Talking Wow, you's guys are enthusiastic!

    Did any of you have a look at the code? Just wondering if it breaks any C++ unwriten do's and don'ts!
    VC++ 6

  9. #24
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214
    Make it so it doesn't pop up an annoying box when you die, having to go from the keyboard to the mouse all the time gets tiring (in other word I crash into the walls a lot).

    but otherwise it's pretty cool.
    "The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
    Eric Porterfield.

  10. #25
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175

    Talking

    Hit enter and stop complaining, if thats not good enought the source is posted earlier so DIY.
    VC++ 6

  11. #26
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    You should get rid of the "magic numbers."

    I am looking at the code and I see stuff like

    BitBlt(WindowDC,((x * 28)+4),((y * 28) + 24),28,28,StuffpicDC,56,0,SRCCOPY);

    How am I supposed to know the signifigance of the numbers 28, 24, 56, etc?
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  12. #27
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175
    Thanks i'll change that, when i programmed this i didn't know how to use #define CellSize 28 ect. so i didnt use it!
    VC++ 6

Page 2 of 2 FirstFirst 12
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-07-2010, 11:08 PM
  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, 10:44 AM
  3. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 02:46 PM
  4. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM

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