armory3d / armory2d

2D Editor
zlib License
83 stars 24 forks source link

Animations and timeline #32

Closed BlackGoku36 closed 8 months ago

BlackGoku36 commented 5 years ago

I am starting to add animation for canvas elements, I am adding something like this:

Screen Shot 2019-09-30 at 5 29 45 PM

@luboslenco Should i use other existing tweening library for this? or should I create small one?

keep this open, till I implement it

BlackGoku36 commented 4 years ago

I tried to use lewis lepton's racoon library tweening and it work good. But then where should I put the tweening code? In it own file(e.g: tween.hx) or put everything in canvas.hx

luboslenco commented 4 years ago

Ideally the tweening would run on iron/Tween (example) for consistency with iron/armory. But that is not accessible right now either. Maybe it's time to tie armory2d directly with iron/armory repositories, and stop being a pure kha library?

BlackGoku36 commented 4 years ago

That would be cool! And btw, what do you mean by tie armory2d directly with iron/armory repositories? like having armory2d as source code in iron/armory3d and run Armory2d from armory like Krom player?

mundusnine commented 4 years ago

I would personally prefer armory2d be a kha library. The reasoning is armory2d could be used for UI design with zui if it remains untied to armory3d.

I am also biased as I would find armory2d to be a good solution to use with foundry2d(2d game engine). I think a better way would maybe be to make a generalized Tweening library for kha based projects ?

That way we could use the same code base across Kha based FOSS projects/engines. Like for foundry I use the same concept as armory for scripting with Traits and I also use almost the same Input class. If we could generalize a subset of core concepts used in armory/iron I think we could make a viable and extendable eco-system.

Anyways, just my take.

luboslenco commented 8 months ago

Link with https://github.com/armory3d/armory2d/issues/1.