My first game in awhile!

This is a discussion on My first game in awhile! within the Game Programming forums, part of the General Programming Boards category; I've programmed a one player strategy game called 'homeyg's Nuclear Wars.' Even though it is without graphics, I have implemented ...

  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
    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.

  5. #5
    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.

  6. #6
    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.

  7. #7
    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

  8. #8
    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

  9. #9
    & 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
    Post your games here...

    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

  10. #10
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    @Thantos
    - This thread is not for discussing the games, only listing them. Discussions should be held in other threads in the Game forum, or via PMs if appropriate.
    @homeyg
    1) Doing a nuke with x = 4, y = 9 causes an error
    2) I think it would be cool if the background color of contaminated sqaures was set to light green
    3) The nukes don't have any color [fixed]
    4) nitpick: replace system("pause") in your code with another screen clearing method so the screen doesn't flicker when the board gets refreshed
    5) Start a new game and do a nuke run, and do x= 8, y = 8; this turns all squares the same color [kind of fixed]
    6) Making release builds makes the size 1/10 of a debug build
    Last edited by MadCow257; 04-07-2005 at 05:03 PM.

  11. #11
    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
    Post your games here...

    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 05:58 PM.

  12. #12
    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 04:31 PM.

  13. #13
    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.

  14. #14
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    1) Now doing a nuke with x = 8, y = 8, doesn't get accepted at all
    2) Doing a nuke with x = 8, y = 7 makes all color gray
    3) Do a spy run on a square that has already been revealed, then do x = 9, y = 4 (or any other invalid input) -- spy run eaten

    Plus the stuff I said in my last post

    EDIT
    Another idea would be to some preset size options like small, medium, and large, as well as having a customizable board option were you can choose the #of residentinal squares, #of military squares, and dimensions of board.
    Last edited by MadCow257; 04-07-2005 at 05:05 PM.

  15. #15
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Quote Originally Posted by MadCow257
    1) Now doing a nuke with x = 8, y = 8, doesn't get accepted at all
    2) Doing a nuke with x = 8, y = 7 makes all color gray
    3) Do a spy run on a square that has already been revealed, then do x = 9, y = 4 (or any other invalid input) -- spy run eaten

    Plus the stuff I said in my last post

    EDIT
    Another idea would be to some preset size options like small, medium, and large, as well as having a customizable board option were you can choose the #of residentinal squares, #of military squares, and dimensions of board.
    You're not supposed to be able to nuke any square with an 8 or 0 as the Y value or 8 or 0 as the X value. Makes the game a little tougher. No military square is ever out of reach due to this though.

    The second thing doesn't happen when I try to recreate it, it does what it's supposed to do and ask for new input (since a square with an X of 8 is invalid input). Btw, I used Dev-C++ to do all this, if it makes any difference.

    The other thing I'll look into because I was able to recreate that, and the thing in your edit.

    The prob may be that you dled the wrong .exe because all of the stuff in your last post has been fixed already.
    Last edited by homeyg; 04-07-2005 at 05:46 PM.

Page 1 of 2 12 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. 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, 01:48 AM
  4. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 11:35 AM
  5. 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