This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5664 - Blackjack Plugin
|
DetailsThis is a WIP version of Blackjack that I recently looked at again in an attempt to fix as many bugs as I could. The result is less buggy, but still with some issues during splitting. I've decided to release this version since I am going away for a few days and thought it best to share my most current code. This version is newer than the version I posted recently in IRC and I fixed up some stupid bugs caused by debug code I had.
New Features: * Now supports all current Rockbox targets with bitmap screens. This includes from Recorder and Ondio to newer ports like irivers, iPods, and iAudio X5. Also included is support for Gigabeat and ifp-700. * Remote support for iriver h1X0 remotes. This code is untested since I don't have a remote and may not work properly. The code may not be the proper way to implement remote support and may be stripped if the plugin is added to CVS post-3.0. * Now you can bet the minimum * The game also remembers your previous bet and defaults to that each time it asks for a new amount Bugs: * When there are more than 3 cards in the second set of cards in a split, it freezes. * During a split, sometimes the dealer's cards are drawn instead of the second split set or vice versa. This bug doesn't affect gameplay but is certainly annoying. I'd like bug reports, feature requests, comments, suggestions, concerns, or improvements posted here or at http://www.misticriver.net/showthread.php?t=36272 More detailed information is available in comments at the top of the code. Please read before using as they provide a more in-depth overview than listed here. |
This task depends upon
Closed by Tom Ross (midgey34)
Wednesday, 17 January 2007, 01:04 GMT+2
Reason for closing: Accepted
Additional comments about closing: I committed this in rev 12030.
Wednesday, 17 January 2007, 01:04 GMT+2
Reason for closing: Accepted
Additional comments about closing: I committed this in rev 12030.
Take Care,
Jon
PS: For anyone wondering, yes, this is a proper patch file. Also, please use bitmaps.zip posted above (you can ignore the SOURCES stuff).
Also, you should use unix line endings (LF rather than CRLF) for the blackjack.c file.
Another thing, clicking the joystick on the H120 is called Navi (while the define is named BUTTON_SELECT)
- The "you win/lose" message is very hard to find (literally) because the "Play again?" splash draws all attention. Maybe you can put this message inside the splash? Or another possibilty could be that only the win/lose info is presented in the splash - a button press leads to the game menu and there one would have an additional quit option.
- (Call me biased)... Would you consider using the new Solitaire graphics? This would need some code rework though as it uses one single bitmap for the entire deck but as I understand Blackjack needs the same cards and you already used the old graphics. But I think the drawing code would benefit from it in the end (should be simpler as it doesn't have to combine different bitmap parts).
1.) Manual patch section and screenshots are included (manual_images.zip)
2.) Using unix line endings (I think...)
3.) Clicking is referred to as NAVI on the H1X0
4.) A simple looking screen when the hand is over for smaller targets
5.) Changed to solitaire bitmaps
6.) Slight code cleanup
7.) Scales to font size
Hope you all enjoy the changes.
Just wondering, would any dev prefer the code to changed into regular ints instead of specifying signed/unsigned?
The graphics can now scale to various sized fonts but the code is still set to SYS_FONT.
Hopefully the Ondio and Recorder should look better. Let me know your thoughts.
PS: I propose that the solitaire graphics be changed from solitaire_ to card_ since they are now being used in more than one plugin.
(Uploaded new patch without my email address...)
Slight change in the "win" messages for Archos; it should look nicer now.
blackjack1.7.patch is the patch file
manual-images.zip contains the manual graphics that go in /manual/plugins/images
Files Needed for Blackjack:
blackjack1.8.patch - latest patch
manual-images.zip - image files for building the manual