Increased move animation a little.
This commit is contained in:
parent
efea350ae9
commit
5c30a4bc01
@ -63,7 +63,7 @@ func newEntityMoveAnimation(e *entity, to geom.Point) *entityMoveAnimation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *entityMoveAnimation) Animate(start, now time.Duration) bool {
|
func (a *entityMoveAnimation) Animate(start, now time.Duration) bool {
|
||||||
const duration = 160 * time.Millisecond
|
const duration = 210 * time.Millisecond
|
||||||
|
|
||||||
progress := float32((now-start)*1000/duration) * .001
|
progress := float32((now-start)*1000/duration) * .001
|
||||||
from, to := a.from.ToF32(), a.to.ToF32()
|
from, to := a.from.ToF32(), a.to.ToF32()
|
||||||
|
Loading…
Reference in New Issue
Block a user