ArdaCraft / IssueTracker

Issue and Todo Management
0 stars 0 forks source link

Animation Plugin #23

Closed Freshmilkymilk closed 4 years ago

Freshmilkymilk commented 8 years ago

Allow for animation of a set of blocks such as doors, boats, etc.

dags- commented 8 years ago

Thoughts:

Components:

Requirements:

Frame storage format

Sponge will have a schematic format built in. Not sure if this is targetting api 4.x (1.8.9) or if it'll be in later versions

Trigger storage format

Something light-weight - json would probably be fine.
Would contain:

Animation types

Support different types of animation:

Should support looping and playing in reverse

Triggers

Triggers should be location specific, and would be linked to one or more animations.
When a user is within x range of a trigger, the animation should be loaded from disk and stored in memory ready to play, until no users are within range.

Need to also consider how a trigger behaves when fired during an actively playing animation - ie is it ignored, does it stop the animation, does it reset the animation etc

Caching

Would be a waist of memory to keep all animations loaded all the time. Should consider loading, caching, and then removing animations as needed - don't want to overly rely on io though

Notes

Freshmilkymilk commented 4 years ago

This has been completed:

https://github.com/dags-/StopMotion https://github.com/ArdaCraft/DoorsOfDurin