[go: up one dir, main page]

blastween

Simple tweening system.
https://github.com/nevergarden/blastween

To install, run:

haxelib install blastween 1.0.0 

See using Haxelib in Haxelib documentation for more information.

README.md

Branding

Simple tweening system for general purpose usage, using Reflection API can change the objects and their data easier.

Example

An example usage of Blastween:

package;

import blastween.UpdateManager;
import blastween.Blastween;

typedef Point = {
	var x : Float;
	var y : Float;
}

class Main {
	public static function Main() {
		var point : Point = { x: 0, y: 0 };
		var updater : UpdateManager = new UpdateManager();
		
		Blastween.tween(updater, point, { x: 0.0, y: 0.0 }, { x: 10.0, y: 2.0 }, 2).start();

		updater.updateAll( 0.5 ); // will update by 0.5 second
		// point.x == 2.5 point.y == 0.5
	}
}

Please Note: from properties of a Float should always be Float constant.

Contributors
aemorax
Version
1.0.0
Published
2 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub