Skip to content
/ krot-pixi Public

Extension for pixi-5 app, to support layouts generated by visual editor - KROT

Notifications You must be signed in to change notification settings

RJA7/krot-pixi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

krot-pixi

This module allows your PIXI 5 application to create layouts generate by KROT editor

How to use

Somewhere in main flow

const { init } = require('krot-pixi');

init(PIXI);

Now you can require yours layouts and create instances

On view classes

const MyLayout = require('./my-layout');
new MyLayout();

All the objects are accessible by name.

You can also specify class for some objects, they will be put in arrays. Make sure all the names and class names are unique in single layout.

Example

const ui = new MyLayout();

ui.someName.x = 0;

ui.someClassName.forEach(object => object.x = 0);

About

Extension for pixi-5 app, to support layouts generated by visual editor - KROT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages