Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.6 KB

README.md

File metadata and controls

62 lines (44 loc) · 1.6 KB

Apos.Tweens

Tweening library for MonoGame.

Discord

This library is inspired by MonoTween.

Documentation

  • Coming soon!

Build

NuGet NuGet

Features

  • Interpolate float values
  • Interpolate Vector2 values
  • Interpolate Color values
  • Easing functions:
    • Linear
    • Sine
    • Quad
    • Cube
    • Quart
    • Quint
    • Circ
    • Expo
    • Back
    • Elastic
    • Bounce

Showcase

Apos.Tweens Showcase

Usage samples

var position = new Vector2Tween(new Vector2(50, 50), new Vector2(200, 200), 2000, Easing.SineIn)
    .Wait(1000)
    .Offset(new Vector2(-100, 0), 500, Easing.BounceOut)
    .Yoyo()
    .Loop();

// ...

TweenHelper.UpdateSetup(gameTime);

// ...

shapeBatch.DrawCircle(position.Value, 10f, Color.White, Color.Black, 2f);

Other projects you might like