A collection of things I have made and things I find interesting.

Actions library for PixiJS

Monday, 22nd March 2021 ◆ Core panic friend is alive (7)

When making Escorial, I created a library to help make queuable tweens/animations in PixiJS. It's called pixi-actions and is available as an npm module. See the readme on github for installation and usage instructions.

Here's a code example:

        Actions.moveTo(sprite, 100, 0, 1, Interpolations.linear),
        Actions.moveTo(sprite, 100, 100, 1, Interpolations.linear),
        Actions.moveTo(sprite, 0, 100, 1, Interpolations.linear),
        Actions.moveTo(sprite, 0, 0, 1, Interpolations.linear)

I have always leant on LibGDX actions when making games in LibGDX, and my library is heavily inspired by that API. Given how useful I find this for making games quickly, I am surprised that not every game framework has an analogue...


There are no comments yet.