Skip to content

Dedicated library for using Effekseer particle tools in libGDX

Notifications You must be signed in to change notification settings

souchygdx/ParticlesLIbgdx

 
 

Repository files navigation

LibGDX + Effekseer

Bintray Download

Dedicated library for using Effekseer particle tools in libGDX

Alt text

https://effekseer.github.io/en/

https://libgdx.badlogicgames.com/

Supported platforms

Android

Windows

Native dependencies

You must download the native libraries

download libs native


Android Folder

libs 
    arm64-v8a
        libgdxeffek.so
    armeabi-v7a
        libgdxeffek.so
    x86
        libgdxeffek.so

Windows Folder
        assets
            gdxeffek.dll

Core dependencies

implementation 'br.com.johnathan.gdx.effekseer.api:api:0.0.6'

sourceCompatibility = 1.8

Starting

3D Effects perspectiveCamera

// Effekseer start
EffekseerManager.InitializeEffekseer();

  PerspectiveCamera  perspectiveCamera = new PerspectiveCamera(67, 1280f, 720);

  // Create a new manager for the particles
  EffekseerManager  manager = new EffekseerManager(perspectiveCamera);

        // create a new particle
        effekseer = new ParticleEffekseer(manager);
        effekseer.setMagnification(20f);
        try {
            
            // false = InternalStorage
            // true = ExternalStorage

            effekseer.load("data/tu.efk",false);
        } catch (Exception e) {
            e.printStackTrace();
        }

    effekseer.play();

Render function

@Override
        public void render() {

...

        manager.draw(Gdx.graphics.getDeltaTime());
} 

dispose function

@Override
    public void dispose() {
manager.dispose();
} 

2D Effects orthographicCamera

  OrthographicCamera  orthographicCamera = new OrthographicCamera(1280f,720f);
  EffekseerManager  manager = new EffekseerManager(orthographicCamera);

animation functions

  effekseer = new ParticleEffekseer(manager);



try {
            effekseer.load("data/ring.efk",true);
        } catch (Exception e) {
            e.printStackTrace();
        }

effekseer.play();

// called after the play function

effekseer.setPosition2D(); //2d animation;
effekseer.getScale(); 
effekseer.setScale();
effekseer.getNodeSize();
effekseer.rotate();
effekseer.translate();
effekseer.getNode();
effekseer.pause();
effekseer.resume();
effekseer.setOnAnimationComplete();
effekseer.transform    //3d animation;

Contributors:

License

About

Dedicated library for using Effekseer particle tools in libGDX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.4%
  • SWIG 5.6%