Thank you for visiting Blazing Games

Sic Bo Beta

Completed 16:45.

Adding the betting to the game actually is a much larger problem than I initially thought. To simplify the problem, I am only going to allow a single bet. I might change my mind (and write a bunch of code) for the release candidate or final release, but at this point I want a fully playable game so I don't have to worry about failing this game in a day challenge. Yes, I know I am a coward, but I don't want to fail my first live challenge.

Getting the bets is actually the easy part. I already have lights over every bet, and those lights happen to be movie clip objects which happen to be able to be able to trap mouse clicks. Simply adding an id to each light, done at initialization, allows me to quickly determine what bet the player wants to make.

The next step is the hard one, and was done in a very quick and dirty way because I am in too much of a rush. The popup box is a simple movie clip that has the 6 possible bets in it. Each bet has a box movie clip surrounding it and a highlight button over it. The last bet amount (set when the popup is called) sets which number the box should be around. All other boxes are made non-visible. The highlight simply sets a new number and triggers an event.

Putting this into the main game requires a couple of tables be created. A bet payout table determines how much each bet pays. A bet label table holds the name that the popup uses to tell the player what bet they are putting a value in for. When a light is clicked on, the bet popup is made visible and the bet the player is making for that round becomes what they clicked on. When the popup event is reached, the bet amount is retrieved and the popup is hidden.

I now have a playable game and even if no further progress is made can consider this challenge won. I am going to take a bit of an extended supper break but plan on cleaning up the interface, creating a better title, and reconsidering allowing multiple bets when I get back. Don't expect the next update until around 20:00 to 21:00 PST, though if eating restores my energy level then the next update could be earlier.

Previous page
Making Sic Bo Page 5

About - Privacy Policy - Contact - Links - FAQ
Copyright © 2008 Blazing Games Inc. All Rights Reserved