Thread: My first game in awhile!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209

    My first game in awhile!

    I've programmed a one player strategy game called 'homeyg's Nuclear Wars.' Even though it is without graphics, I have implemented text colors in this one. I need some people to test it for me, give suggestions, give ideas about what else to add, whatever. If you want to see the code, say it (but it's highly uncommented).

    Here is the link to the zipped .exe.

    The game has a short tutorial, so you're not completely lost.

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    In the instructions you said, "...but you lose reputation by destroying residentialor civilian locations..."
    I noticed, for example, if you do a nuke run and give invalid numbers (ex. x = 30, y = 100), it won't tell you anything and will eat your nuke
    Lastly, I think you should label the x and y axis (like in excel) so the user doesn't have to count the squares.

  3. #3
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Quote Originally Posted by MadCow257
    In the instructions you said, "...but you lose reputation by destroying residentialor civilian locations..."
    I noticed, for example, if you do a nuke run and give invalid numbers (ex. x = 30, y = 100), it won't tell you anything and will eat your nuke
    Lastly, I think you should label the x and y axis (like in excel) so the user doesn't have to count the squares.
    hmm, I'll fix these.

  4. #4
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Wait, didn't see your edit in time, going to fix that too.
    Last edited by homeyg; 04-02-2005 at 09:13 PM.

  5. #5
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Here is the latest .exe to avoid confusion.
    Last edited by homeyg; 04-02-2005 at 09:16 PM.

  6. #6
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Please if you've dled another .exe besides the one in the previous post, please dl the one in the previous post.

    hmm, for some reason its not letting me edit my own posts, so just ignore all of the other .exe links.
    Last edited by homeyg; 04-07-2005 at 03:31 PM.

  7. #7
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    I just noticed this -- in the instructions it says that at first there will be 10 residential squares revealed, but when I play the game it reveals 15.

    As a suggestion, I think the nukes should be colored.

    *note*
    I think when you give the coordinates for a spy run, it should not only check if its too large/small but also if the coordinate has already been revealed.

  8. #8
    Let's do some coding! Welshy's Avatar
    Join Date
    Mar 2005
    Location
    Staffordshire University, UK
    Posts
    168
    ill test the game more thoroughly tomorrow as im going to bed now, but could i just ask whether you used a 3d array or pointers for the squares? i ask because ive made a basic tic-tac-toe game and im weighing up the benefits of each method

  9. #9
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Quote Originally Posted by Welshy
    ill test the game more thoroughly tomorrow as im going to bed now, but could i just ask whether you used a 3d array or pointers for the squares? i ask because ive made a basic tic-tac-toe game and im weighing up the benefits of each method
    I used 4 arrays total. 1 for displaying the board, 1 for the internal workings of the board, one to record the x,y locations of residential areas on the board, and one to record the x,y locations of the military sites.

    The two arrays that deal with the board are 2D and the ones that deal with recording the locations of the different things are 1D.

    All arrays besides the one that displays the board are arrays of structs.

    Hope that helps some. Looking at my code might not do any good because it is void of useful comments.

  10. #10
    Let's do some coding! Welshy's Avatar
    Join Date
    Mar 2005
    Location
    Staffordshire University, UK
    Posts
    168
    Quote Originally Posted by homeyg
    I used 4 arrays total. 1 for displaying the board, 1 for the internal workings of the board, one to record the x,y locations of residential areas on the board, and one to record the x,y locations of the military sites.

    The two arrays that deal with the board are 2D and the ones that deal with recording the locations of the different things are 1D.

    All arrays besides the one that displays the board are arrays of structs.

    Hope that helps some. Looking at my code might not do any good because it is void of useful comments.
    Yeah thanks mate, i was just curious as to how you made it, im thinking about making a similar game myself, kinda like Civ3, which i see you also like to play, hehe

  11. #11
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Quote Originally Posted by Welshy
    Yeah thanks mate, i was just curious as to how you made it, im thinking about making a similar game myself, kinda like Civ3, which i see you also like to play, hehe
    Proud player of CivIII since December 2001! Btw, it would be extremely hard to make a game like CivIII by yourself because I'm in on a project like that with multiple people and it's really tough (I think the thread for it is in my sig). I had to take a break from it.

    Not to advertise or anything (if that's against the forum rules), but the forum in my sig is an awesome place to get good at CivIII.
    Last edited by homeyg; 04-08-2005 at 02:37 PM.

  12. #12
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    I've updated the game, no more bugs with nukes or spy runs I hope. The code text file is attached. Just compile it.
    Last edited by homeyg; 04-09-2005 at 03:44 PM.

  13. #13
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    what i think is, you need a more detailed explanation of wtf im supposed to do.
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  14. #14
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    There is already a thread for submitting your games located
    http://cboard.cprogramming.com/showthread.php?t=41431

    Please note one of the rules
    - Source code must be provided as an attachment to your post. This forum is primarily here for learning purposes, no one learns to program from an executable!
    Please edit your posts to comply with this rule.

    Thank you

  15. #15
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Quote Originally Posted by Thantos
    There is already a thread for submitting your games located
    http://cboard.cprogramming.com/showthread.php?t=41431

    Please note one of the rules


    Please edit your posts to comply with this rule.

    Thank you
    Sorry. I'll do that. Btw, I've made some corrections to the game and I've added a tutorial.
    Last edited by homeyg; 04-07-2005 at 04:58 PM.

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. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 03:46 PM
  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, 12:48 AM
  4. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 10:35 AM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM