These are chat archives for pixijs/pixi.js

30th
Dec 2017
mcpll
@mcpll
Dec 30 2017 14:50
hi guys, how do you split the code in pixi project? i'm trying with extends a pixi class, but some use composition over inheritance or something similar
Ivan Popelyshev
@ivanpopelyshev
Dec 30 2017 16:15
it depends ;)
Something extends Container , new Something(model); , where model contains your logic data
"Something" adds childs based on that model.
That relation is similar to Sprite<->Texture
mcpll
@mcpll
Dec 30 2017 19:30
@ivanpopelyshev have you have some example?
Ivan Popelyshev
@ivanpopelyshev
Dec 30 2017 21:10
no example, only real projects