Merge branch 'repixture' into 'master'

Support 'Repixture' game

Closes #16

See merge request Df458/rpg16!24
This commit is contained in:
Hugues Ross 2020-01-25 19:39:07 +00:00
commit 5075b093ab
196 changed files with 161 additions and 1 deletions

View File

@ -8,6 +8,8 @@ if [ -z "${TMP_DIR}" ]; then
TMP_DIR=tmp
fi
# Export textures from a folder to ${EXPORT_DIR},
# converting .gif textures to the standard spritesheet format
function folderExport() {
echo "Exporting folder ${1}..."
rsync -r --exclude="*.gif" "${1}" "${EXPORT_DIR}"
@ -17,10 +19,31 @@ function folderExport() {
montage "${i}" -tile 1x -geometry '1x1+0+0<' -alpha set -background transparent -coalesce -quality 100 "${EXPORT_DIR}/${i%.gif}.png" || { echo "Failed to export ${i}"; exit 1; }
done
}
# Copy a file to ${EXPORT_DIR}
function copyExport() {
rsync "${1}" "${EXPORT_DIR}"
}
# Copy textures from a clone file
#
# Clone file format:
# relative/path/to/source,relative/path/to/destination
# # Comment
#
# Paths from this file are relative to ${EXPORT_DIR}
# Empty lines are also allowed
function makeClones() {
# for i in `cat "${1}"`; do
while read i; do
if [[ -n ${i} && ${i::1} != '#' ]]; then
dest="${EXPORT_DIR}/${i#*,}"
mkdir -p `dirname ${dest}`
rsync ${EXPORT_DIR}/${i%,*} ${dest}
fi
done < ${1}
}
# Ensure that the build directory exists
mkdir -p "${EXPORT_DIR}"
@ -94,6 +117,7 @@ folderExport "vessels"
folderExport "wool"
folderExport "xpanes"
# CTF
folderExport "ctf/ctf_bandages"
folderExport "ctf/ctf_colors"
folderExport "ctf/ctf_events"
@ -102,4 +126,27 @@ folderExport "ctf/ctf_map"
folderExport "ctf/ctf_traps"
folderExport "ctf/medkits"
# Repixture
folderExport "repixture/armor"
folderExport "repixture/bed"
folderExport "repixture/default"
folderExport "repixture/door"
folderExport "repixture/farming"
folderExport "repixture/gold"
folderExport "repixture/headbars"
folderExport "repixture/hunger"
folderExport "repixture/jewels"
folderExport "repixture/locks"
folderExport "repixture/lumien"
folderExport "repixture/mobs"
folderExport "repixture/music"
folderExport "repixture/nav"
folderExport "repixture/parachute"
folderExport "repixture/partialblocks"
folderExport "repixture/player_skins"
folderExport "repixture/ui"
folderExport "repixture/village"
folderExport "repixture/weather"
makeClones "repixture-clones.txt"
echo "Done! Files copied to ${EXPORT_DIR}"

View File

@ -1,4 +1,3 @@
default:apple * default_apple_node.png
default:tinblock bottom default_tin_block_top.png
default:tinblock top default_tin_block_top.png
@ -15,3 +14,7 @@ caverealms:glow_obsidian_2 * magma_conduits_glow_obsidian.png
caverealms:hot_cobble * magma_conduits_hot_cobble.png
caverealms:mushroom_stem bottom caverealms_mushroom_stem_top.png
caverealms:mushroom_stem top caverealms_mushroom_stem_top.png
default:fence * default_fence_wood.png
default:fence_birch * default_wood_birch.png
default:fence_oak * default_wood_oak.png

110
repixture-clones.txt Normal file
View File

@ -0,0 +1,110 @@
# Repixture - armor
3d_armor/3d_armor_boots_bronze.png,armor/armor_boots_bronze.png
3d_armor/3d_armor_inv_boots_bronze.png,armor/armor_boots_bronze_inventory.png
3d_armor/3d_armor_boots_steel.png,armor/armor_boots_steel.png
3d_armor/3d_armor_inv_boots_steel.png,armor/armor_boots_steel_inventory.png
3d_armor/3d_armor_boots_wood.png,armor/armor_boots_wood.png
3d_armor/3d_armor_inv_boots_wood.png,armor/armor_boots_wood_inventory.png
3d_armor/3d_armor_chestplate_bronze.png,armor/armor_chestplate_bronze.png
3d_armor/3d_armor_inv_chestplate_bronze.png,armor/armor_chestplate_bronze_inventory.png
3d_armor/3d_armor_chestplate_steel.png,armor/armor_chestplate_steel.png
3d_armor/3d_armor_inv_chestplate_steel.png,armor/armor_chestplate_steel_inventory.png
3d_armor/3d_armor_chestplate_wood.png,armor/armor_chestplate_wood.png
3d_armor/3d_armor_inv_chestplate_wood.png,armor/armor_chestplate_wood_inventory.png
3d_armor/3d_armor_helmet_bronze.png,armor/armor_helmet_bronze.png
3d_armor/3d_armor_inv_helmet_bronze.png,armor/armor_helmet_bronze_inventory.png
3d_armor/3d_armor_helmet_steel.png,armor/armor_helmet_steel.png
3d_armor/3d_armor_inv_helmet_steel.png,armor/armor_helmet_steel_inventory.png
3d_armor/3d_armor_helmet_wood.png,armor/armor_helmet_wood.png
3d_armor/3d_armor_inv_helmet_wood.png,armor/armor_helmet_wood_inventory.png
# Repixture - default
default/default_tool_bronzeaxe.png,default/default_axe_bronze.png
default/default_tool_steelaxe.png,default/default_axe_steel.png
default/default_tool_stoneaxe.png,default/default_axe_stone.png
default/default_tool_woodaxe.png,default/default_axe_wood.png
default/default_tool_steelsword.png,default/default_broadsword.png
default/default_bronze_block.png,default/default_block_bronze.png
default/default_coal_block.png,default/default_block_coal.png
default/default_steel_block.png,default/default_block_steel.png
default/default_chest_side.png,default/default_chest_sides.png
default/default_cobble.png,default/default_cobbles.png
default/default_sandstone_block.png,default/default_compressed_sandstone.png
default/default_sandstone_block.png,default/default_compressed_sandstone_top.png
default/default_dry_grass_3.png,default/default_dry_grass_clump.png
default/default_fern_1.png,default/default_fern.png
default/default_fern_1.png,default/default_fern_inventory.png
fire/fire_flint_steel.png,default/default_flint_and_steel.png
default/default_furnace_side.png,default/default_furnace_sides.png
default/default_glass.png,default/default_glass_frame.png
default/default_grass_3.png,default/default_grass_clump.png
default/default_grass_4.png,default/default_grass_clump_tall.png
default/default_bronze_ingot.png,default/default_ingot_bronze.png
default/default_copper_ingot.png,default/default_ingot_copper.png
default/default_steel_ingot.png,default/default_ingot_steel.png
default/default_tin_ingot.png,default/default_ingot_tin.png
moretrees/moretrees_birch_leaves.png,default/default_leaves_birch.png
moretrees/moretrees_oak_leaves.png,default/default_leaves_oak.png
default/default_coal_lump.png,default/default_lump_coal.png
default/default_copper_lump.png,default/default_lump_copper.png
default/default_iron_lump.png,default/default_lump_iron.png
default/default_tin_lump.png,default/default_lump_tin.png
default/default_tool_bronzepick.png,default/default_pick_bronze.png
default/default_tool_steelpick.png,default/default_pick_steel.png
default/default_tool_stonepick.png,default/default_pick_stone.png
default/default_tool_woodpick.png,default/default_pick_wood.png
moretrees/moretrees_birch_sapling.png,default/default_sapling_birch.png
moretrees/moretrees_birch_sapling.png,default/default_sapling_birch_inventory.png
default/default_sapling.png,default/default_sapling_inventory.png
moretrees/moretrees_oak_sapling.png,default/default_sapling_oak.png
moretrees/moretrees_oak_sapling.png,default/default_sapling_oak_inventory.png
default/default_tool_bronzeshovel.png,default/default_shovel_bronze.png
default/default_tool_steelshovel.png,default/default_shovel_steel.png
default/default_tool_stoneshovel.png,default/default_shovel_stone.png
default/default_tool_woodshovel.png,default/default_shovel_wood.png
moretrees/moretrees_birch_trunk.png,default/default_tree_birch.png
moretrees/moretrees_birch_trunk_top.png,default/default_tree_birch_top.png
moretrees/moretrees_oak_trunk.png,default/default_tree_oak.png
moretrees/moretrees_oak_trunk_top.png,default/default_tree_oak_top.png
default/default_water_flowing_animated.png,default/default_water_animated.png
default/default_river_water_flowing_animated.png,default/default_river_water_animated.png
moretrees/moretrees_birch_wood.png,default/default_wood_birch.png
moretrees/moretrees_oak_wood.png,default/default_wood_oak.png
gui/gui_hotbar.png,ui/ui_hotbar_bg.png
gui/gui_hotbar_selected.png,ui/ui_hotbar_selected.png
default/default_furnace_fire_bg.png,ui/ui_fire_bg.png
default/default_furnace_fire_fg.png,ui/ui_fire.png
gui/gui_furnace_arrow_bg.png,ui/ui_arrow_bg.png
gui/gui_furnace_arrow_fg.png,ui/ui_arrow.png
# Repixture - door
doors/doors_item_wood.png,door/door_wood.png
# Repixture - gold
default/default_gold_ingot.png,gold/gold_ingot_gold.png
default/default_gold_lump.png,gold/gold_lump_gold.png
default/default_mineral_gold.png,gold/gold_mineral_gold.png
# Repixture - jewels
default/default_wood.png,jewels/jewels_bench_bottom.png
# Repixture - locks
default/default_chest_lock.png,locks/locks_chest_front.png
# Repixture - mobs
mobs/mobs_blood.png,mobs/mobs_damage.png
mobs/mobs_meat.png,mobs/mobs_meat_cooked.png
wool/wool_white.png,mobs/mobs_wool.png
# Repixture - nav
map/map_mapping_kit.png,nav/nav_inventory.png
# Repixture - partialblocks
default/default_coal_block.png,partialblocks/partialblocks_block_coal_slab.png
default/default_coal_block.png,partialblocks/partialblocks_block_coal_stair.png
default/default_cobble.png,partialblocks/partialblocks_reinforced_cobbles_stair.png
default/default_sandstone_block.png,default/partialblocks_compressed_sandstone_stair.png
# Repixture - tnt
tnt/tnt_side.png,tnt/tnt_sides.png
tnt/tnt_top.png,tnt/tnt_top_disabled.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 935 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 969 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 955 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 990 B

BIN
repixture/bed/bed_foot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 925 B

BIN
repixture/bed/bed_head.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

BIN
repixture/bed/bed_side.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 953 B

After

Width:  |  Height:  |  Size: 910 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 943 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 990 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 990 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 990 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1021 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1003 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 969 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 955 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 947 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 865 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1005 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 B

Some files were not shown because too many files have changed in this diff Show More