Guess this thread is sort of my dev log.
Spending time making it pretty. I'll probably spend longer making it look good than I spent actually putting it together. I had a bit of fun making the dice graphics work properly. I've got it set as a sprite with each frame of animation each being a side of the die. Then when the die number is determined I've got a function that will set the frame properly.
It seems it wants a straight up number and not any kind of math to determine the frame because for a while I could not get it to work right. The problem was the frame numbers start at 0, and obviously there is no 0 side to dice and thus zero would never be generated. I thought the easiest solution was to then feed it "DieNumber + 1" and it would then choose the correct frame, but for whatever reason it did not like that at all and the die face would change but it seemed to do so randomly. So the next easiest solution was to fill frame zero with nothing and then the frames would be the same number as the side they represent so I could just feed it DieNumber. I also moved setting the frame from when the roll button is clicked to every tick and now its working perfectly.
I also added some cute little tricks like randomly setting the die rotation angle every time they are rolled so they don't look so static.
I've got some Japanese coin graphics from Wikipedia I'm using as the bet buttons. I need to set up some animation for them, just a pop up when mouse over and down when clicked. Shouldn't be too hard. Glad to be getting rid of the ugly-ass buttons. I will be doing the same for the Roll and the actual even/odd choice buttons. Those i think I already know what i'm going to do.
After that I need to have some sort of cover over the dice which will then move out of the way once you have made your choice, to reveal the dice and see if you've won or lost. That should be a fun one and might actually help me with some other tricks. Like I can have it move and then as it collides with another object off screen i can use that as a trigger to Put up a "Win" or "Lose" graphic or something. Then as you click Roll I can have it move back into place, make another collision, which then sets the dice just to make sure they are covered before the numbers pop up. I dunno, just thinking about it.
And then I can see about adding sounds and possibly music! We'll see how many events I have left to use, but I'm only at around 20 events so far so I have plenty of room for that stuff.
Oh yeah, and I am rethinking the unlimited money/bet thing. There isn't a lot of tension when you play. Obviously part of that is I can see the answer, but with the betting the money isn't "worth" anything. Oops, I'm at -1000...I can bid 3000 and if I win I'm back! Bleh. If I limited the bet to how much money you have then you will have to build it up over time, carefully playing. Interesting how a change like that can affect how it feels to play.