take this value into var

This commit is contained in:
Marcus 2024-01-04 03:36:45 +01:00
parent cab4c94f86
commit 3160b9eb3e

View file

@ -27,6 +27,7 @@ SY=0
XDIR=0 XDIR=0
YDIR=0 YDIR=0
XORY=0 XORY=0
BOUNCESTEP=2
## end bounce ## end bounce
@ -290,20 +291,20 @@ flootworker()
then then
if [ $XDIR == 0 ] if [ $XDIR == 0 ]
then then
SX=$(($SX+5)) SX=$(($SX+$BOUNCESTEP))
test $SX -ge $X_MAX && XDIR=1 test $SX -ge $X_MAX && XDIR=1
else else
SX=$(($SX-5)) SX=$(($SX-$BOUNCESTEP))
test $SX -eq 0 && XDIR=0 test $SX -eq 0 && XDIR=0
fi fi
XORY=1 XORY=1
else else
if [ $YDIR == 0 ] if [ $YDIR == 0 ]
then then
SY=$(($SY+5)) SY=$(($SY+$BOUNCESTEP))
test $SY -ge $Y_MAX && YDIR=1 test $SY -ge $Y_MAX && YDIR=1
else else
SY=$(($SY-5)) SY=$(($SY-$BOUNCESTEP))
test $SY -eq 0 && YDIR=0 test $SY -eq 0 && YDIR=0
fi fi
XORY=0 XORY=0