07/17/2009, 05:46 AM
So, this is my first time writing an application from scratch, go easy on me.
It's a very simple craps game, with only the two most basic bets: pass, and don't pass.
I just released 1.0, and I'd say barring any bugs this might be my last version. It does the main stuff very well now, and the only thing to add would be more bets. I did some initial planning of the logic that would be involved with all of that and I'd say at least for the time being, it's too much for me.
Source code is attached here, ipk in the Homebrew App link above.
If someone wants to contact the people who are doing that webOS-internals repository too, then it can definitely be included there as well.
Also, if anyone is curious about the very preliminary planning work I started doing for additional versions past 1.0 (still probably not happening): Craps Application. Maybe it'll show why I decided against it. (And I have no idea why it's showing as dotted lines in the uploaded version, for the record.)
1.0.0: Changed up Help scene to fit better. Added description for slider.
0.9.1: Fixed a bug where the shake function was still be listened for while in help-scene. (Forgot to add it to the Assistant.prototype.deactivate function.)
0.9.0: Accelerometer/ shake support! Shake to roll implemented thanks to boydell for his eight-ball app for helping me realize that shakeend works, just not shakestart. Make sure you hold onto your Pre tightly while shaking, there's some tactile feedback as well. I'm not responsible if it slips out of your hand.
v0.8.8: Working on accelerometer stuff but the two commands I need don't seem to be working. Wanted to get out GUI fixes from last two updates. Accelerometer stuff is commented out and therefore not present in this release.
v0.8.7: (Unreleased) Changed from text boxes to just palm-body-text. Looks much cleaner that way, and I was able to consolidate Bet & Money to the same line, which gives more room in case of notifications. A ton of behind the scenes changes had to happen for this.
v0.8.6: (Unreleased) The bet slider is a little too touchy for my liking, so I decided to round to the nearest 5. Sort of like a minimum bet at a casino, and it makes it much easier to select the number you want.
v0.8.5: Fixed game logic and help scene- a 12 on initial roll with don't pass bet is actually a draw / push.
v0.8.0: Adds data storage support via a cookie and a reset button in the menu, as well as polls the slider every 0.1 seconds to aid in selecting a bet. Also made help scene fit on one page without needing to scroll.
v0.7.0: Reworked help scene. Fixed bug mentioned below in v0.6.0. Reorganized functions to better prepare for when we finally get the accelerometer support. Disabled Roll button while in the process of rolling.
v0.6.0: Work on prettying it up. Better dice graphics and added a function to make it seem like you're actually rolling dice rather than getting a number instantly. Bug- after the first roll, it's now possible to change the radiobutton mid-game. The disabling function doesn't kick in until the second roll. Working on that now.
v0.5.0: Added a slider for the bet instead of having to type the number, Made text boxes read-only, Added Error if you try to bet more money than you have.
v0.4.5: (Unreleased) Figured out why Radio button was off center.
v0.4.0: Added How to Play and About to AppMenu.
v0.3.0: Figured out how to conditionally disable the radio button depending on whether a game is in progress or not.
v0.2.5: Changed Roll Dice color to stand out more.
v0.2.0: Added Don't Pass mode, changed app ID. If you installed a previous version to this, delete before installing.
v0.1.0: Removed Error Dialogs.
v0.0.3: Added Betting.
v0.0.2: Placeholder GUI.
v0.0.1: Proof of Concept App.