From 3160b9eb3e70c88c1569b16b4271e23a45dbf7a8 Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 4 Jan 2024 03:36:45 +0100 Subject: [PATCH] take this value into var --- pixelfloot_bash.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pixelfloot_bash.sh b/pixelfloot_bash.sh index a0ca54e..3afd717 100755 --- a/pixelfloot_bash.sh +++ b/pixelfloot_bash.sh @@ -27,6 +27,7 @@ SY=0 XDIR=0 YDIR=0 XORY=0 +BOUNCESTEP=2 ## end bounce @@ -290,20 +291,20 @@ flootworker() then if [ $XDIR == 0 ] then - SX=$(($SX+5)) + SX=$(($SX+$BOUNCESTEP)) test $SX -ge $X_MAX && XDIR=1 else - SX=$(($SX-5)) + SX=$(($SX-$BOUNCESTEP)) test $SX -eq 0 && XDIR=0 fi XORY=1 else if [ $YDIR == 0 ] then - SY=$(($SY+5)) + SY=$(($SY+$BOUNCESTEP)) test $SY -ge $Y_MAX && YDIR=1 else - SY=$(($SY-5)) + SY=$(($SY-$BOUNCESTEP)) test $SY -eq 0 && YDIR=0 fi XORY=0