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 .