mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
The spine-lua API has been updated to be compatible with Spine version 3.4.02 (latest stable). The spine-lua API now supports path constraints, transform constraints, uses the new way we encode meshes etc. There are no API breaking changes, only API additions, such as PathConstraints and TransformConstraints as well as additional methods to Skeleton and similar classes. The internals of the spine-lua API have also been updated to follow Lua best performance practices by localizing heavily and using meta tables for "class methods". The spine-lua API now also loads texture atlases as exported by Spine. All that is required for a consumer is to supply an image loading function for their specific engine/framework. We provide implementations for spine-love and spine-corona. The spine-love API can now render all Spine attachment types, including meshes and linked meshes. The API has changed. Where previously a "class" Skeleton existed with a draw function, the new spine-love API introduces a new SkeletonRenderer. See the example on API usage. The spine-corona API can now also render all Spine attachment types. The API has not changed.
108 lines
5.0 KiB
Bash
Executable File
108 lines
5.0 KiB
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
SPINE_EXE="C:/Program Files (x86)/Spine/Spine.com"
|
|
PLATFORM=`uname`
|
|
echo $PLATFORM
|
|
if [[ $PLATFORM == "Darwin" ]]; then
|
|
SPINE_EXE="/Applications/Spine/Spine.app/Contents/MacOS/Spine"
|
|
fi
|
|
echo "Spine exe: $SPINE_EXE"
|
|
|
|
echo "Cleaning..."
|
|
rm -rf ../alien/export/*
|
|
rm -rf ../dragon/export/*
|
|
rm -rf ../goblins/export/*
|
|
rm -rf ../hero/export/*
|
|
rm -rf ../powerup/export/*
|
|
rm -rf ../speedy/export/*
|
|
rm -rf ../spineboy/export/*
|
|
rm -rf ../spineboy-old/export/*
|
|
rm -rf ../spinosaurus/export/*
|
|
rm -rf ../stretchyman/export/*
|
|
rm -rf ../raptor/export/*
|
|
rm -rf ../tank/export/*
|
|
rm -rf ../vine/export/*
|
|
rm -rf ../test/export/*
|
|
|
|
echo ""
|
|
echo "Exporting..."
|
|
"$SPINE_EXE" \
|
|
-i ../alien/alien.spine -o ../alien/export -e json.json \
|
|
-i ../alien/alien.spine -o ../alien/export -e binary.json \
|
|
-i ../alien/images -o ../alien/export -n alien -p atlas-0.5.json \
|
|
-i ../alien/images -o ../alien/export -n alien-pma -p atlas-0.5-pma.json \
|
|
\
|
|
-i ../dragon/dragon.spine -o ../dragon/export -e json.json \
|
|
-i ../dragon/dragon.spine -o ../dragon/export -e binary.json \
|
|
-i ../dragon/images -o ../dragon/export -n dragon -p atlas-1.0.json \
|
|
-i ../dragon/images -o ../dragon/export -n dragon-pma -p atlas-1.0-pma.json \
|
|
\
|
|
-i ../goblins/goblins.spine -o ../goblins/export -e json.json \
|
|
-i ../goblins/goblins.spine -o ../goblins/export -e binary.json \
|
|
-i ../goblins/goblins-mesh.spine -o ../goblins/export -e json.json \
|
|
-i ../goblins/goblins-mesh.spine -o ../goblins/export -e binary.json \
|
|
-i ../goblins/images -o ../goblins/export -n goblins -p atlas-1.0.json \
|
|
-i ../goblins/images -o ../goblins/export -n goblins-pma -p atlas-1.0-pma.json \
|
|
\
|
|
-i ../hero/hero.spine -o ../hero/export -e json.json \
|
|
-i ../hero/hero.spine -o ../hero/export -e binary.json \
|
|
-i ../hero/hero-mesh.spine -o ../hero/export -e json.json \
|
|
-i ../hero/hero-mesh.spine -o ../hero/export -e binary.json \
|
|
-i ../hero/images -o ../hero/export -n hero -p atlas-1.0.json \
|
|
-i ../hero/images -o ../hero/export -n hero-pma -p atlas-1.0-pma.json \
|
|
\
|
|
-i ../powerup/powerup.spine -o ../powerup/export -e json.json \
|
|
-i ../powerup/powerup.spine -o ../powerup/export -e binary.json \
|
|
-i ../powerup/images -o ../powerup/export -n powerup -p atlas-1.0.json \
|
|
-i ../powerup/images -o ../powerup/export -n powerup-pma -p atlas-1.0-pma.json \
|
|
\
|
|
-i ../speedy/speedy.spine -o ../speedy/export -e json.json \
|
|
-i ../speedy/speedy.spine -o ../speedy/export -e binary.json \
|
|
-i ../speedy/images -o ../speedy/export -n speedy -p atlas-1.0.json \
|
|
-i ../speedy/images -o ../speedy/export -n speedy-pma -p atlas-1.0-pma.json \
|
|
\
|
|
-i ../spineboy/spineboy.spine -o ../spineboy/export -e json.json \
|
|
-i ../spineboy/spineboy.spine -o ../spineboy/export -e binary.json \
|
|
-i ../spineboy/spineboy-mesh.spine -o ../spineboy/export -e json.json \
|
|
-i ../spineboy/spineboy-mesh.spine -o ../spineboy/export -e binary.json \
|
|
-i ../spineboy/images -o ../spineboy/export -n spineboy -p atlas-1.0.json \
|
|
-i ../spineboy/images -o ../spineboy/export -n spineboy-pma -p atlas-1.0-pma.json \
|
|
\
|
|
-i ../spineboy-old/spineboy-old.spine -o ../spineboy-old/export -e json.json \
|
|
-i ../spineboy-old/spineboy-old.spine -o ../spineboy-old/export -e binary.json \
|
|
-i ../spineboy-old/images -o ../spineboy-old/export -n spineboy-old -p atlas-1.0.json \
|
|
-i ../spineboy-old/images -o ../spineboy-old/export -n spineboy-old-pma -p atlas-1.0-pma.json \
|
|
-i ../spineboy-old/normal -o ../spineboy-old/export -n spineboy-old-normal -p atlas-1.0.json \
|
|
-i ../spineboy-old/diffuse -o ../spineboy-old/export -n spineboy-old-diffuse -p atlas-1.0.json \
|
|
\
|
|
-i ../spinosaurus/spinosaurus.spine -o ../spinosaurus/export -e json.json \
|
|
-i ../spinosaurus/spinosaurus.spine -o ../spinosaurus/export -e binary.json \
|
|
\
|
|
-i ../stretchyman/stretchyman.spine -o ../stretchyman/export -e json.json \
|
|
-i ../stretchyman/stretchyman.spine -o ../stretchyman/export -e binary.json \
|
|
-i ../stretchyman/images -o ../stretchyman/export -n stretchyman -p atlas-1.0.json \
|
|
-i ../stretchyman/images -o ../stretchyman/export -n stretchyman-pma -p atlas-1.0-pma.json \
|
|
\
|
|
-i ../raptor/raptor.spine -o ../raptor/export -e json.json \
|
|
-i ../raptor/raptor.spine -o ../raptor/export -e binary.json \
|
|
-i ../raptor/images -o ../raptor/export -n raptor -p atlas-0.5.json \
|
|
-i ../raptor/images -o ../raptor/export -n raptor-pma -p atlas-0.5-pma.json \
|
|
\
|
|
-i ../tank/tank.spine -o ../tank/export -e json.json \
|
|
-i ../tank/tank.spine -o ../tank/export -e binary.json \
|
|
-i ../tank/images -o ../tank/export -n tank -p atlas-0.5.json \
|
|
-i ../tank/images -o ../tank/export -n tank-pma -p atlas-0.5-pma.json \
|
|
\
|
|
-i ../test/test.spine -o ../test/export -e json.json \
|
|
-i ../test/test.spine -o ../test/export -e binary.json \
|
|
-i ../test/images -o ../test/export -n test -p atlas-0.5.json \
|
|
-i ../test/images -o ../test/export -n test-pma -p atlas-0.5-pma.json \
|
|
\
|
|
-i ../vine/vine.spine -o ../vine/export -e json.json \
|
|
-i ../vine/vine.spine -o ../vine/export -e binary.json \
|
|
-i ../vine/images -o ../vine/export -n vine -p atlas-1.0.json \
|
|
-i ../vine/images -o ../vine/export -n vine-pma -p atlas-1.0-pma.json
|
|
|
|
rm -rf ../spineboy-old/export/*-normal.atlas
|