Spine 运行库
在你的游戏开发工具中,你可以使用Spine运行库加载和渲染你的游戏,运行的效果就象在Spine中一样。我们的API可以直接访问骨骼、附件、皮肤以及动画等数据。使用API您可以在游戏中操作骨骼、组合动画、创造淡入淡出等效果。
官方的运行库可以在GitHub下载,其中许可证授权在你的游戏中可以使用运行库。并且所有的代码都是开源的,这些开源的功能在你的游戏中都是必不可少的。
如果您想先使用运行库来评估Spine,在Spine示例项目可以下载一些包含已经导出Spine数据的示例项目,这些例子程序都是使用运行库的。
官方运行库
Spine官方运行库支持以下游戏工具。
- cocos2d-x – C++
- Godot – C++/GDScript, Documentation
- HTML5 Canvas – JavaScript/TypeScript, demo
- HTML5 WebGL – JavaScript/TypeScript, demo
- HTML5 Web Player – JavaScript/TypeScript, demo
- libgdx – Java, HTML5 demo, game demo
- MonoGame – C#
- SDL – C, C++
- SFML – C++
- THREE.js – JavaScript/TypeScript, demo
- Unreal Engine - C++, Documentation
- Unity - C#, Documentation
官方通用运行库
通用运行库没有渲染功能,如果你的游戏开发工具不被官方所支持,您可以很容易地扩展通用运行库,或者也可以尝试第三方开发的运行库。
第三方运行库
这些运行库都是一些游戏社区开发的。其中有一些运行库的使用者也很多,但是大部分都是开源的,如果您想参与贡献,可以访问Spine论坛。
ActionScript 3
Beef
C#
- MonoGame and Gdna
- nicolay/Unity – native Unity animations
- pixelballoon/Unity – native Unity animations
- Unity Futile
- Wave Engine
- XNA/MonoGame – content pipeline
C++
- Cinder - thread
- Chobolabs/spine-cpp – thread
- GerogeChong/spine-sdl – C/C++ with bindings for C#, Python, and others
- Gideros
- Marmalade
- Ouzel
- Rainbow
- Raylib
- Torque2D
Construct 2
Construct 3
- gritsenko/c3_spine_plugin – thread, recommended
- SpineJSEQTemplate
Dart
Defold
Flutter
GameMaker
- GameMaker – developed officially by YoYo Games
- ecriss/GameMaker – C
- kabecao/GameMaker – GML
Gideros
Go
Haxe
- bendmorris/spinehaxe
- bendmorris/SpinePunk
- Genome2D
- HaxeFlixel
- jeremyfa/spine-hx
- nitrobin/spinehx – Haxe 3 and NME 4
JavaScript
- A-Frame – demo, thread
- BabylonJS
- CAAT
- cocos2d-html5
- EaselJS – blog, demo
- flyover/spine.js – demo
- phaser-spine
- PixiJS – demo
- PlayCanvas – demo, Super Spineboy
- SmoothStep2D
- three.js
- Panda2D
Lua
- Gideros
- SpineHelper – Corona
- Codea
MOAI
- tangerinagames/spine-moai – Lua
- Vavius/plugin-moai-spine – C++/Lua, high performance, thread
- Vavius/Hanappe – Lua, thread
Monkey
Papagayo
Pascal
- Pascal – FPC, Delphi, Smart Mobile Studio
Python
Qt/QML
- irukandji/spine-qml – thread
- tommego/qspine – thread
- V-Play – documentation
- vmatikainen/spine-qml-converter – thread