46 Commits

Author SHA1 Message Date
NathanSweet
68d829556a Added getter for tracks.
http://www.esotericsoftware.com/forum/viewtopic.php?f=7&t=1982
2014-01-26 16:46:30 +01:00
NathanSweet
b0c96fd66b Typo 2014-01-11 21:20:46 +01:00
NathanSweet
d520addb9b Updated license to version 2.
Version 1 of the license didn't make sense: it required a Spine license to use the Spine Runtimes at all. This means if you used the Spine Runtimes in your application, anyone who purchased a copy of your application also needed a Spine license to use the runtimes. This was not the intent!

Version 2 of the license fixes this by allowing anyone to use the Spine Runtimes but only for internal use. When you purchase Spine, the Spine license (http://esotericsoftware.com/spine/files/license.txt) grants you the right to make and distribute derivative works of the Spine Runtimes. Now it makes sense: making and distributing applications with the Spine Runtimes requires a Spine license, but anyone can run that software without needing a Spine license.

With this fixed, I hope we never need to change the license again!
2014-01-11 21:07:28 +01:00
NathanSweet
71956544ba Mix from closest animation if setting an animation during a mix. 2014-01-06 21:33:58 +01:00
NathanSweet
ba0d48eda8 Avoid reflection. 2013-12-22 23:34:08 +01:00
NathanSweet
a9315d46f3 Fixed animation state delay when not set right away. 2013-10-22 11:41:57 +02:00
NathanSweet
af5ff6c11f Fixed events not firing sometimes.
http://www.esotericsoftware.com/forum/viewtopic.php?f=9&t=1462
2013-10-20 12:18:01 +02:00
NathanSweet
dbd6ae87ad Moved firing complete event to apply. Fixed missing keys on last frame when animation changes. 2013-10-17 16:06:18 +02:00
NathanSweet
3a1aac897c Better delay adjustment. 2013-10-17 01:13:22 +02:00
NathanSweet
c25809fa4f When delay is <= 0 use remaining time, not just duration.
http://www.esotericsoftware.com/forum/viewtopic.php?f=7&t=1447
2013-10-16 11:04:29 +02:00
NathanSweet
f3be613429 Fixed clearing tracks in event callbacks. 2013-10-10 18:49:16 +02:00
NathanSweet
97f9b7e4d2 Fixed clearing tracks in event callbacks.
closes #134
2013-10-10 10:15:53 +02:00
NathanSweet
9a347d5eb8 Updated license.
Nailed it this time, quite sure!
2013-10-04 04:13:09 +02:00
NathanSweet
edb50113ea Better resetting of pooled TrackEntrys. 2013-10-03 20:05:27 +02:00
NathanSweet
bc259b390e Fixed lastTime not being set. 2013-10-03 20:03:11 +02:00
NathanSweet
47ce2a40c1 Minor update to the license to include education. 2013-10-01 14:55:15 +02:00
NathanSweet
af5aca8b66 Changed when events are fired.
Events are now fired from lastTime (exclusive) to time (inclusive). This allows an event at the end of an animation to be fired before the next animation starts. The "complete" callback will happen before the event though, because "complete" happens in update() and events are triggered in apply().

Note events are not fired for the previous animation during mixing (crossfading).
2013-09-29 23:22:55 +02:00
NathanSweet
3797b7b7b0 Clear a track if the last entry is non-looping and reached endTime. 2013-09-28 21:28:01 +02:00
NathanSweet
b854dd94c3 Fixed bugs with timeScale. 2013-09-28 20:22:56 +02:00
NathanSweet
fc92128519 Time scale, per AnimationState and per track. 2013-09-28 01:43:06 +02:00
NathanSweet
98bf05c305 Minor cleanup. 2013-09-26 09:36:23 +02:00
NathanSweet
2df28f8564 More AnimationState refactoring, getting good!
#113
2013-09-25 19:39:48 +02:00
NathanSweet
0049b4f7b4 Refactored AnimationState to better support setting a to/from time.
#113
2013-09-25 12:13:57 +02:00
NathanSweet
8bd2171250 Minor changes. 2013-09-23 11:21:44 +02:00
NathanSweet
8883f73a10 Event timeline fixed to fire events correctly for edge cases. 2013-09-20 19:47:00 +02:00
NathanSweet
acf515cbb6 Better lastTime calculation. 2013-08-15 12:03:02 +02:00
NathanSweet
35ec341907 Fixed removing queue listener. 2013-08-14 17:04:55 +02:00
NathanSweet
2abccc497e Allow removing current and queued listeners. 2013-08-14 16:45:18 +02:00
NathanSweet
6e328e3cbd Changed listener to interface. 2013-08-14 16:14:08 +02:00
NathanSweet
1180cee47c Per animation listener. 2013-08-10 22:20:16 +02:00
NathanSweet
354d3b75d6 Event timeline. 2013-08-08 22:57:57 +02:00
NathanSweet
ed0bae85c3 AnimationState queued animation for more runtimes, plus fixes. 2013-04-27 14:33:38 +02:00
NathanSweet
5a46f8c6b4 isComplete for AnimationState. 2013-04-19 09:14:29 +02:00
NathanSweet
7bd6f62a2b Added AnimationState clear.
id return value for factory methods.
2013-04-18 23:31:29 +02:00
NathanSweet
4568d7ebfd Clear method for animation state. 2013-04-15 18:05:53 +02:00
NathanSweet
dd27ee184c Changed Spine export format.
There are no longer separate animation files, they are now inside the skeleton file. This means there is just one file to manage, which is cleaner. Now that animations are stored in SkeletonData, they can be looked up by name which leads to cleaner runtime APIs.

cocos2d and cocos2d-x runtimes got a cleaner ObjC/C++ API.
2013-04-04 04:00:45 +02:00
NathanSweet
7d7e56bb24 Fixed AnimationState bug. 2013-04-02 18:45:25 +02:00
NathanSweet
ca163b5e52 Moar refuctoring. All the refuctorings are belong to Spine. 2013-04-02 02:47:11 +02:00
NathanSweet
3aab744395 Utility methods to read from file and other minor improvements. 2013-03-22 16:18:03 +01:00
NathanSweet
159d076f79 Names for animation and skeleton. 2013-03-22 12:57:03 +01:00
NathanSweet
d07321c9e7 Javadocs 2013-03-22 12:41:57 +01:00
NathanSweet
6e0e420e0a Javadoc 2013-03-22 12:23:50 +01:00
NathanSweet
d6e7ae7a4a Fixed test files. 2013-03-22 12:20:42 +01:00
NathanSweet
6e9bcfd1d5 License headers for source files. 2013-03-20 14:58:59 +01:00
NathanSweet
0812aaa091 Cleanup, javadocs. 2013-03-18 15:43:12 +01:00
Disk1of5
1c2554c178 Added:
*AnimationState.java
*AnimationStateTest.java

Updated:
*Git ignore to ignore all LibGDX libs.
*MixTest.Java -- Reverted back to LWJGL
*SkeletonTest.java -- Reverted back to LWJGL

A few Idea project files where added. I left these in for easy future development with
Intellij Idea.
2013-03-14 22:32:25 -06:00