FS#8183 - The Case Game - (Deal or No Deal variant)
The Case Game
Here is a variant of Deal or No Deal for Rockbox.
26 cases contain random amounts of virtual money. After choosing 1 case for yourself, you open the other cases until the banker makes you an offer to buy your case. If you choose to accept the offer the game ends and you receive that offer as your final score. By declining the offer, you continue to open the remaining cases until the next offer. If you decline all offers you get the amount that was in your case as your final score. If play continues until your down to 1 case plus the case you chose, you are given the option to swap cases.
Gameplay controls:
() While opening cases: pressing UP shows the remaining case amounts.
pressing DOWN shows the high scores.
() While deciding on an offer: pressing UP shows the previous offers.
pressing DOWN shows the high scores.
This game allows name entries into a high score board.
This game currently only works on color lcd screens (Sansa e200 176×220) or greater.
Apply the patch and place the .bmp files in the “apps/plugins/bitmaps/native/” directory.
Please post results for other platforms as well as comments. I tested the game out on the Gigabeat simulator and it seemed to work well.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
WinRar says that the arcive is "destroyed" (I have the german version, don't know what the english version would say)
Here are the files.
When compiling for the H3xx I get errors because the buttons are "undeclared (first use in this function)"
In the file casegame.h you need to add the button maps for your player. I currently only have the Gigabeat and Sansa defined.
This one should include button mapping for the H3xx.
What do I o o make it work on the ipod4g?
if you want this to be commited, please add support for all sensible targets (probably all excpet the arhcos player)
What nees to be done t support none color targts
the buttons and drawing code will need to be sorted for each target
Could someone atach casegame.h? My build laptop is nusable right ow bu I will add keymaps fr ipods on this empoa laptop.
I took a stab at adding button maps for almost all players. The graphic displays still need to be changed for smaller screens and grayscale players but this is a start.
Please post comments on players that work or don't work so that I get some feedback. If your screen is grayscale or smaller then 176x220 I already know it won't work, but I'm working on it!
Can't compile. I get the following errors
CC casegame.c
casegame.c: In fuction 'play_case_game':
casegame.c:81: error: duplicate case value
casegame.c:80: error: previously used here
casegame.c:87: error: duplicate case value
casegame.c:81: error: previously used here
casegame.c:88: error: duplicate case value
casegame.c:87: error: previously used here
I tried to fix this myself but have no success.
Tried to compile for H3xx with revision 15722.
This should fix that issue.
Thank you. It compiles now. I have 3 screendumps where text overlaps the images.
Try this one.
Again, just add these images to "apps/plugins/bitmaps/native/"
Thank you again. The images fit now. Only one thing. The last line of the message "The contents of this case are yours to keep unless …" is overlapped by the text "Press SELECT to choose case. Exactly as on the first screendump I attached to the last comment.
And the second problem. The new images aren't shown correct. Maybe this is a compiling error of me but cygwin didn't show up errors. (See new screendumps)
Perform a "make clean" then re "make" and the images should show up right. I'll look into the other issues.
This should fix the overlap in text.
Thx works now without any problems on H3xx. IMO the cases are a bit small, there's so much space, but that's no real problem. Also the resized images are not that good. I will change them myself and post you the result.
Very nice! Works perfect and a fair bit of fun when you don't want to pay to much attention to it. This should definately be implemented…
I'm glad people are enjoying the game. If you like this game please click on the vote link at the top of this thread so I get some feedback on people using it.
This post is a re-sync with svn and a tar ball of all of the images for this game.
Apply the patch then place these images in "apps/plugins/bitmaps/native/"
I haven't tried the game yet, but a few comments from a quick read of the source:
1) The UP/DOWN mappings on the ipod look reversed - MENU is located at the top of the wheel (but is mapped as DOWN), and PLAY is at the bottom (but mapped as UP). Other targets use UP/DOWN normally.
2) It's enabled for all targets with bitmap displays, but is missing key mappings for all Archos targets.
3) You haven't included a (C) header with license information in the source files
Thanks for the feedback linuxstb.
This version of the patch adds the following:
() Fixed the iPod UP/DOWN mapping
() Added support for Archos targets
() Added support for grayscale targets
() Added header license information to casegame.h
This patch allows for high score name to replace the current entry if score ties a current entry. This was just ignored previously.
Seems out of sync again?
My computer has been down, hopefully i'll get a new sync soon.
That wasn't so bad. Here is a re-sync.
The images .tar doesn't appear to extract with winrar or 7zip - Gives a 320kb FILE :s
Try this one.
Hmm the images file isn't working again.. maybe it's my fault.. could someone possibly upload it to another site? www.savefile.com for example?
Sync and clean up.
I would suggest that the game should clear the backdrop on start to black. Depending on the backdrop, it is difficult to see the text on the screen.
The backdrop appears to clear whenever the application starts on my Sansa. What platform are you having trouble with the text on?
I'm using a Sansa E200 with r17981.
Everything looks good to me.
Here is a sync with svn 19102.
Don't forget to install the casegame_images.zip file from above.
it think its ready to commit…?
That would be my opinion. I've spent a lot of time testing and it seems to work really well.
Here is a sync with svn 21065.
Don't forget to install the casegame_images.zip file from above.
Here is a sync with svn 23129
* Fixed Makefile implementation to conform to standard
* Updated structures with the new implementations in svn
Don't forget to install the casegame_images.zip file from above.
Nice game, but I love this spider solitaire game. https://www.spider-solitaire.org/ It's a challenge to win it and that's what I like, but it's also frustrating when you don't win it.