Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- loc () {
- while true; do
- read -e -p "Please enter the path to the folder that terrain.png is in: " -i "./" $loc;
- strip
- done
- }
- strip () {
- mkdir $loc/out;
- convert $loc/terrain.png -crop $res +repage +adjoin $loc/out/terrain_%02d.png;
- echo "Done!"
- exit
- }
- res () {
- echo "Please Select the resolution of this pack?"
- select res in "16x16" "32x32" "64x64" "128x128" "256x256" "exit"; do
- if [ "$res" == "exit" ]
- then exit
- else loc
- fi;
- done
- }
- res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement