| Cell Phone App - Java Midlet - Game Demo. | posted: 5/20/09 |
|
Incomplete blackjack game. Apprx. 105K. Would greatly appreciate feedback. |
|
| Download by setting your cell phone browser to: | ProgramsPlus.us/code/Java/J2ME/c/cards/cards.html |
|
If your cell phone is Java enabled it will download the game automatically (asking your permission). The file is approximately 105k. Let me know how it works..
|
|
|
The game is incomplete, and if anyone would like the source code give me a call. For a while many class projects were to write black jack games. It's a fun exercise but it gets complicated fast if you want to write it using Vegas rules. It can take the better part of a quarter to complete. Imagine, though, plugging it into a payment system or bluetooth, someone sitting at the airport, or a concession, sets their blooth device to be server, acts as the banker, and players can anonymously buy in to play. It's not far off. I'm ready when you are.
|
|
|
|
|
Here everything is expressed in display units. I've used images instead of graphics to show the cards. The images must be placed dynamically to fit on different sized screens. All coordinates are relative to the screen and the other items dipsplayed. That's probably obvious, but now instead of x = 100 and y = 50, its screen width/2 - imageWidth/2, etc. Sounds simple but the complexity stretches the brain pretty quick. One trick I've found is to express screen location as 'w' and 'h' and image or object width and height as 'x' and 'y'. If you stick to it, when you debug you'll have an extra shortcut. Send me your thoughts.
|
|