Skip to content

Commit

Permalink
refactor keyframe loading; use map for pose events
Browse files Browse the repository at this point in the history
  • Loading branch information
flyover committed Jan 25, 2017
1 parent 7ee0acd commit 7713542
Show file tree
Hide file tree
Showing 8 changed files with 1,147 additions and 1,460 deletions.
6 changes: 4 additions & 2 deletions demo/main.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion demo/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ export function start(): void {

spine_pose.strike();

// spine_pose.events.forEach((event) => { console.log("event", event.name, event.int_value, event.float_value, event.string_value); });
spine_pose.events.forEach((event: Spine.Event, event_key: string): void => {
///console.log("event", event_key, event.int_value, event.float_value, event.string_value);
});

if (anim_blend > 0) {
spine_pose_next.strike();
Expand Down
99 changes: 55 additions & 44 deletions demo/render-ctx2d.js

Large diffs are not rendered by default.

95 changes: 51 additions & 44 deletions demo/render-ctx2d.ts

Large diffs are not rendered by default.

88 changes: 50 additions & 38 deletions demo/render-webgl.js

Large diffs are not rendered by default.

80 changes: 44 additions & 36 deletions demo/render-webgl.ts

Large diffs are not rendered by default.

789 changes: 329 additions & 460 deletions spine.js

Large diffs are not rendered by default.

Loading

0 comments on commit 7713542

Please sign in to comment.