Thread: My first C++ game (early alpha stage)

  1. #1
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065

    My first C++ game (early alpha stage)

    Here's the source, executable and resources
    ( *.bmps/*.wavs/etc. ) for my first VC++ game.

    Pretty basic stuff. Since it is a windowed game I decided to just
    use GDI and not bother with DX. Same for the sound effects; just
    used the standard Window's API stuff.

    Here is the jist of the game. Up to 4 players, currently played
    in "hotseat" fashion, but will eventually be playable over a LAN.
    I'm working on an AI for the computer players if you choose to
    play with less than 4 (which also means I'm working on an
    interface to allow you to choose the number of human players,
    from 1 to 4 max)

    You roll the dice in turn. 1's are worth 100 points, 5's are worth
    50 points. It will eventually calculate additional scoring (ie:
    straights (currently the "Straight?" checkbox has no effect, just
    changes state), 3's of a kind). Similar to Yathzee but not quite.
    It's based on a dice game a friend of mine showed me. He calls
    it "Bonkers" but I'm not sure if that's the proper name.

    If you do not roll a 1 or a 5 your turn is over and it goes on to the next player's turn. If you have at least one 1 or 5 then you have the option to "hold" that die (by clicking on the button below the die to hold" and rolling the remaining dice to add to your score.

    If you choose to end your turn then the "pool" is added to your score and the next player is given the opportunity to either start fresh (roll all 5 dice) or roll off of the "un-held" dice that you past to them and then (if they roll successful) they add the "pool" score to the points from their roll (more risk but the opportunity to get a higher score).

    Please let me know what you think (especially about the code, I've only been programming in C++ for few months).

    Oh, yeah. I know the *.wav file that plays when you roll the dice doesn't sound like dice. I can't find a "dice rolling" wav file for anything. That was the closest sound I could find.

    and all the artwork (I know it's "programmer" art) was done with POV-Ray (a free 3d raytracer) www.pov-ray.org .
    Last edited by jdinger; 03-30-2002 at 11:43 PM.

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065

    OOPS!

    I forgot to include the zip file in the first post.

    Here it is:

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Whoa, that's pretty cool. The concept of the game is fun, and the look and feel of the game is good too.

    I won't comment on the code because you're more advanced than me, however, that doesn't mean I think anything is wrong with the code.

    As a suggestion I think you would be better off working on an AI for the game rather than LAN play. This doesn't seem like a game where you'd play with humans. I could see myself playing this game quite a few times if a good AI were intact.

  4. #4
    Registered User
    Join Date
    Feb 2002
    Posts
    145

    Thumbs up Nice

    I like the graphics and the sound. You should consider creating all the files in a folder, otherwise things can get pretty messy. Great work though, I never learned VB but I bet that was a lot of work.

    Kyoto Oshiro
    Horizon Games
    http://www.angelfire.com/realm2/horizon/files.html

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    77
    wow
    the coding i see until blur

  6. #6
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065

    Re: Nice

    Originally posted by Kyoto Oshiro
    You should consider creating all the files in a folder, otherwise things can get pretty messy.
    If you mean putting the graphics in a "images\" folder and the *.wav's in a "sounds\" folder, then yeah, I agree. Like I said, this is pretty early in development (off-and-on for a week or so), so I need to structure the data better.

    Originally posted by Kyoto Oshiro
    Great work though, I never learned VB but I bet that was a lot of work.
    Not sure what you mean about VB. This was all written in VC++ 6.

    And, thanks to everyone for the encouraging comments.

  7. #7
    Registered User GreenCherry's Avatar
    Join Date
    Mar 2002
    Posts
    65

    Exclamation Name

    The name of the original game is called "Fill or Bust". It uses cards to show what type of event you must do, and the dice for things similar to yatzee only in the ways of getting straights. You roll the dice, and separate the three of a kind, ones and fives. You can roll as long as there is one of these present. When you have something of the likeness on all dice you win, if you have none of them in a roll you get no points that turn.

  8. #8
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065

    Thanks, GreenCherry.

    The rules you described are exactly right. I've just never seen it played with cards (just 5 dice) and I never knew the proper name for the game.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open-source Game Project
    By Glorfindel in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 03-24-2009, 01:12 AM
  2. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 05:48 PM
  3. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  4. Alpha of my first game
    By Shakti in forum Game Programming
    Replies: 28
    Last Post: 06-09-2004, 12:24 AM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM