Rockbox

  • Status Assigned
  • Percent Complete
    0%
  • Task Type Patches
  • Category Games
  • Assigned To
    Bilgus
  • Operating System Sansa e200
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 3
  • Private
Attached to Project: Rockbox
Opened by Morey - 2007-11-19

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.

WinRar says that the arcive is "destroyed" (I have the german version, don't know what the english version would say)

When compiling for the H3xx I get errors because the buttons are "undeclared (first use in this function)"

Morey commented on 2007-11-19 14:25

In the file casegame.h you need to add the button maps for your player. I currently only have the Gigabeat and Sansa defined.

Morey commented on 2007-11-19 14:58

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.

Morey commented on 2007-11-20 15:40

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.

Morey commented on 2007-11-20 18:07

This should fix that issue.

Thank you. It compiles now. I have 3 screendumps where text overlaps the images.

Morey commented on 2007-11-20 20:01

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)

Morey commented on 2007-11-20 21:33

Perform a "make clean" then re "make" and the images should show up right. I'll look into the other issues.

Morey commented on 2007-11-21 01:09

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.

Izzeh commented on 2007-11-28 00:54

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…

Morey commented on 2007-11-28 04:04

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

Morey commented on 2007-11-30 03:07

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

Morey commented on 2007-12-14 03:17

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?

Morey commented on 2008-01-27 03:20

My computer has been down, hopefully i'll get a new sync soon.

Morey commented on 2008-01-27 04:48

That wasn't so bad. Here is a re-sync.

Izzeh commented on 2008-02-09 01:54

The images .tar doesn't appear to extract with winrar or 7zip - Gives a 320kb FILE :s

Morey commented on 2008-02-12 00:43

Try this one.

Izzeh commented on 2008-03-21 08:20

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.

Morey commented on 2008-07-31 20:44

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.

Morey commented on 2008-11-13 21:36

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…?

Morey commented on 2008-12-21 04:03

That would be my opinion. I've spent a lot of time testing and it seems to work really well.

Morey commented on 2009-05-24 05:16

Here is a sync with svn 21065.
Don't forget to install the casegame_images.zip file from above.

Morey commented on 2009-10-12 19:45

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.

torry commented on 2019-03-05 20:52

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.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing