My best c++ console game

This is a discussion on My best c++ console game within the C++ Programming forums, part of the General Programming Boards category; I downloaded it when you first posted about it. Here are my comments (from what I remember) You use ALOT ...

  1. #16
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230
    I downloaded it when you first posted about it.

    Here are my comments (from what I remember)
    • You use ALOT of nesting. You nest 2-3 if() structures within other if() structures which are a part of a while() structure. This can be hard to follow and I suggest you re-think some of your logic and try using switch statements
    • No goto statements.. Violate the practice of structured programming
    • You have a lot of numbers in your code (no duh), but you should try a #define some constants to make the code more readable
    • Your source is pretty long, you could/should break it up into multiple source files (this will help readability as well)


    You did a good job, but you could clean up your code a bit. I would love to see your revised code so maybe I could learn how you did your menu.

  2. #17
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Yea sure.. I was also thinking of doing it.. I think i will recode it in a few days...

  3. #18
    Registered User
    Join Date
    Aug 2001
    Posts
    223
    I am impressed. You put a lot of work into this one. I was working on a game a while back and just have not had the time to get back started on it. I was trying to reproduce pacman but man does it take so much effort. I have not had the will recently to continue on it. I am will be posting what I have so far to my website since the project is so large 2.75MB zipped... because of the bitmaps mainly.
    zMan

  4. #19
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    If I start a game and press ESC to get out of it my screen get messed up and I need to use task manager to close the prog. Not a huge bug. It looks pretty cool.

  5. #20
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Well i will see the pac man game now.. And the game gets messed up i think because i have not colsed the graph whith the function closegraph() Using this function i think would solve the bug..

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

Similar Threads

  1. Need book to program game into multiplayer...
    By edomingox in forum Game Programming
    Replies: 3
    Last Post: 10-02-2008, 10:26 AM
  2. PC or Console gamers, what are you playing?
    By indigo0086 in forum A Brief History of Cprogramming.com
    Replies: 119
    Last Post: 04-14-2008, 09:17 AM
  3. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 01:48 AM
  4. Game console input
    By glUser3f in forum Game Programming
    Replies: 3
    Last Post: 11-07-2003, 04:33 AM
  5. Best game console
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-05-2001, 09:25 PM

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