srcimon / screwbox

Minimalist 2D Java game engine. Result of covid lockdown.
MIT License
8 stars 0 forks source link

Enhance tweening with different tween modes (LinearOut, LinearIn, EaseInAndOut) #164

Closed srcimon closed 10 months ago

srcimon commented 10 months ago

See https://motioncanvas.io/docs/tweening/ for inspiration

srcimon commented 10 months ago

more inspiration https://github.com/jeffreylanters/unity-tweens

srcimon commented 10 months ago

option 1: TweenXPositionComponent(from, to) TweenComponent returns progress and progressvalue / progressvalue is then mapped on from/to form=0%, to=100%

option 2: TweenXPositionComponent(from, to, Tweenmode) TweenComponent returns progress

srcimon commented 10 months ago

Use option 1. individual tweens not necessary when every component has a from, to option

srcimon commented 10 months ago

implemented in main