diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2019-10-11 17:31:22 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2019-10-11 17:31:22 -0400 |
commit | c22612764c3078e839aa7eadfd9f9d31f5ed2aa1 (patch) | |
tree | f655eef406919a05c0e738754e6ff7ec7ab4badd /test-thm-mvmt.sh | |
parent | cb1f2be037024674f638e23ff967b4e6012cdc40 (diff) |
Revamp Tile Heightmap Collision so that it can now do
things like, act as a wall on one side, and actually
make the opposite side of the heightmap act like a
floor, or ceiling.
I also changed the way you input heightmaps, so that
the length of the heightmap is based on the width.
Diffstat (limited to 'test-thm-mvmt.sh')
-rwxr-xr-x | test-thm-mvmt.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test-thm-mvmt.sh b/test-thm-mvmt.sh index 2957c48..be6a8c3 100755 --- a/test-thm-mvmt.sh +++ b/test-thm-mvmt.sh @@ -30,9 +30,9 @@ while read frame key held; do [ "${key#*KEY_S}" != "$key" ] && negy="" && y1=$(echo "$y1+$yspd" | bc) [ "${key#*KEY_A}" != "$key" ] && negx="-" && x1=$(echo "$x1-$xspd" | bc) [ "${key#*KEY_D}" != "$key" ] && negx="" && x1=$(echo "$x1+$xspd" | bc) - printf "0\n$w1,$h1\n$x1,$y1\n$negx$xspd,$negy$yspd\n$w2,$h2\n$flip\n$heightmap\n$x2,$y2" | ./clld + #printf "0\n$w1,$h1\n$x1,$y1\n$negx$xspd,$negy$yspd\n$w2,$h2\n$flip\n$heightmap\n$x2,$y2" | ./clld xy=$(printf "0\n$w1,$h1\n$x1,$y1\n$negx$xspd,$negy$yspd\n$w2,$h2\n$flip\n$heightmap\n$x2,$y2" | ./clld | tail -n2 | tr -d ',' | head -n1) x1=$(echo "$xy" | awk '{print $1}') y1=$(echo "$xy" | awk '{print $2}') - #printf "\33[1;1H$x1 $y1 \33[2;1H$negx$xspd $negy$yspd \33[3;1H \b\b" + printf "\33[1;1H\33[2K$x1 $y1\33[E\33[2K$negx$xspd $negy$yspd\n\33[2K" done |