Author Topic: Frozen bubble updated  (Read 2186 times)

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
Frozen bubble updated
« on: June 12, 2004, 10:37:15 pm »
I\'ve updated frozen-bubble in the unstable feed.

If you want to save your high scores, do this before installing:
mv /home/root/.fb* /home

and then after install:
mv /home/.fb* /home/root

Changes:

The \'p\' button now pauses the game.  I know that not having a pause button had to annoy somebody out there.

I converted all of the png images fro 24-bit to 8-bit and reduced the coloring from 256 colors to 64 colors.  This cuts the file sizes of the images in more than half and improves game speed and loading time.  You shouldn\'t even notice the difference on the tiny screen

Got rid of the \'falling bubble\' animation that slowed down gameplay in the 2 graphic level (the default graphics level).

I\'m probably going to do 1 more update, its just going to be a couple of weeks before I have the time.  I want to compress the wav files a little to save space and find some more ways to improve speed even more.

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Frozen bubble updated
« Reply #1 on: February 12, 2007, 08:59:51 am »
I find it really boaring having to start over each time again ... or having to load the game manually to the last level I was playing ... so I made a little work around to load the next level respect to the highest hiscore saved.

here it is (replace your /usr/local/bin/frozen_bubble.sh with this):

Code: [Select]
#!/bin/sh
LEVEL=$(grep "'level'" ~/.fbhighs* |awk '{print $NF}' |tr -d "," |sort -nu |tail -1)
if [ "$LEVEL" != "" ]
then
  frozen_bubble -sl -fs -so -l$(expr $LEVEL + 1)
else
  frozen_bubble -sl -fs
fi
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Frozen bubble updated
« Reply #2 on: February 13, 2007, 03:02:18 am »
Actually I realized that frozen bubble saves highscore on the level you are plying not the one completed ... so there is no need to do that "expr $LEVEL+ 1" stuff .... just use -l$LEVEL like this:
Code: [Select]
#!/bin/sh
LEVEL=$(grep "'level'" ~/.fbhighs* |awk '{print $NF}' |tr -d "," |sort -nu |tail -1)
if [ "$LEVEL" != "" ]
then
  frozen_bubble -sl -fs -so -l$LEVEL
else
  frozen_bubble -sl -fs
fi
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing