FS#8925 - clix for color player

Attached to Project: Rockbox
Opened by Rene Peinthor (rp) - Tuesday, 22 April 2008, 16:35 GMT
Last edited by Johannes Schwarz (Ubuntuxer) - Wednesday, 08 July 2009, 17:44 GMT
Task Type Patches
Category Games
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This is the clix game for rockbox, goal of the game is to remove all blocks from the board. You can only remove 2 blocks of the same color with a cirect connection. The more blocks you remove per turn the more points you get.

I tested this on a Sansa e200 which is the only target i have. Also tried it on the Sansa c200 simulator. Please try it on other color targets(LCD_DEPTH >= 16) and report any bugs.
This task depends upon

Closed by  Johannes Schwarz (Ubuntuxer)
Wednesday, 08 July 2009, 17:44 GMT
Reason for closing:  Accepted
Comment by Anthony Mercuri (cool_walking_) - Wednesday, 23 April 2008, 08:13 GMT
Works fine on my iPod video. Does the play field get bigger in later levels? If not, there's a lot of space on the screen to make it bigger than it is currently.
Comment by Rene Peinthor (rp) - Wednesday, 23 April 2008, 08:23 GMT
No for now it doesn't get any bigger, with the current size it is also playable on the sansa c200.
It would be possible to make the field bigger depending of the lcd size of the player, but I'm not sure how mucht this effects gameplay btw. complexity.
Maybe an option would be the right thing, so if the player supports a bigger field than you can choose it if you want it.
Comment by Anthony Mercuri (cool_walking_) - Wednesday, 23 April 2008, 08:48 GMT
Sorry I didn't mean to add more cells but to make the cells bigger so that they take up more space on the screen.
Comment by Rene Peinthor (rp) - Wednesday, 23 April 2008, 09:04 GMT
ah ok :) hm that shouldn't be a big problem, will try that today.
thanks for testing and feedback.
Comment by Rene Peinthor (rp) - Thursday, 24 April 2008, 15:42 GMT
Here is a new version, with a keymap for ipod and the field gets bigger depending on the size of the screen, but for now the biggest size for a CELL is 8 pixel.
Making bigger cells looks not so good i would say.
Comment by Anthony Mercuri (cool_walking_) - Monday, 28 April 2008, 10:36 GMT
That's much better. Less eye strain :)

The scrolling doesn't seem to work (nothing happens when scrolling in-game), so currently you can only move sideways. Also, I'd personally prefer to have MENU move up, PLAY move down, and MENU+SELECT quit, like in minesweeper. You could still have scrolling as well as these, as minesweeper does.
Comment by Rene Peinthor (rp) - Thursday, 19 March 2009, 18:59 GMT
updated patch to build with recent SVN version
no functional change
Comment by Tony Huynh (insanepotato) - Friday, 10 April 2009, 04:12 GMT
just tried it on my sansa c200, great game. Used to play this when i was younger on win95 xD
Comment by Johannes Schwarz (Ubuntuxer) - Friday, 10 April 2009, 16:50 GMT
I wrote a patch, which replace the old menu and add some buttons. Furthermore I changed the lib/highscore.c, so it returns the rank of the player. If you achieved an new highscore your rank in the list is highlighted.
The game is a lot of fun. :-)
Comment by Rene Peinthor (rp) - Friday, 24 April 2009, 20:28 GMT
I checked your changes and put them into my sources and also cleaned up the code a bit more. Thanks for your contribution.
Comment by Johannes Schwarz (Ubuntuxer) - Thursday, 30 April 2009, 17:49 GMT
Your last patch won't work, because it needs the tiny change in "lib/highscore.c".
I fixed some small bugs, so now it should work on every player with colors.

What do you think about drawing unicolored images, which looks more plastically or like bricks.

Apart from that I think the game is premade. But every game need a help text and a summary for the rockbox manual.
I'm writting a lib just now, which can display a formatted text. Please have a look.  FS#8925 
Comment by Johannes Schwarz (Ubuntuxer) - Tuesday, 23 June 2009, 09:03 GMT
I would like to see Clix in Rockbox, so I write an manual entry with latex and take screenshots for each display size.
Comment by Johannes Schwarz (Ubuntuxer) - Tuesday, 23 June 2009, 09:08 GMT
I added some missing button macros and wrote the help text. The patch depends on  FS#10099 ,  FS#10283  and  FS#10350 , which I will commit soon.
Comment by Johannes Schwarz (Ubuntuxer) - Saturday, 04 July 2009, 22:40 GMT
I synced the patch to svn and fixed a small bug in the help function.
Comment by Rene Peinthor (rp) - Sunday, 05 July 2009, 09:35 GMT
Hi Johannes!
Just wanted to say thanks for improving this little game and I'm looking forward to see this game in rockbox.
Comment by Johannes Schwarz (Ubuntuxer) - Tuesday, 07 July 2009, 18:16 GMT
Hi, I'll commit your nice game soon. There's just one inconsistency; you wrote: "The more blocks you remove per turn the more points you get."
This isn't right; of course it doesn't matter whether you remove many blocks in one turn or you remove them in later; you will get the same score.
Comment by Rene Peinthor (rp) - Wednesday, 08 July 2009, 06:16 GMT
As long you remove the same amount of blocks later. The amount of blocks you remove is important within a turn(click, remove action) :)
I guess if someone plays the game he will quickly understand the scoring system.