drmop Posted April 6, 2015 Share Posted April 6, 2015 Hi, Just assessing PIXI as a potential replacement for the rendering portion of my game engine and have a couple of questions: 1) In my engine I have separate scenes, each scene contains a bunch of stuff, for example, one scene could contain the HUD, another could be game level1, another level 2 etc.. Is it feasible for me to have a separate stage for each of these scenes? Or is it recommended to have only a single stage? 2) Can a stage have a transparent background? 3) I cannot seem to find anything related to sprite layering, is this supported? Thanks Mat Quote Link to comment Share on other sites More sharing options...
Slyders Posted April 6, 2015 Share Posted April 6, 2015 Stage can have a transparent background PIXI.autoDetectRenderer(renderWidth, renderHeight, {'transparent':true}); i think its better to have 1 stage with many DisplayObjectContainer .. For sprite layer its just set when you add something to a stage ..Exemple :stage.addChild(object1); layer 1 stage.addChild(object2); layer 2 ..Use DisplayObjectContainer to have many item on 1 layer See the documentation it will help you alot .. im still a new user from pixi but i respond my best Quote Link to comment Share on other sites More sharing options...
drmop Posted April 7, 2015 Author Share Posted April 7, 2015 Thanks for the reply. So basically I can derive my Scene from DisplayObjectContainer or just create an DisplayObjectContainer and add that to the stage? I think PIXI ideally needs some kind of programming guide, at the moment I'm finding reading the source more informative than API reference as its difficult to pick up context from API docs. Quote Link to comment Share on other sites More sharing options...
xerver Posted April 7, 2015 Share Posted April 7, 2015 booty5 you should use pixi 3, not v2 if you are just starting out. It can be found on the `dev` branch of the code. The examples and docs for it can be found in the pixijs org: https://github.com/pixijs/examples https://github.com/pixijs/docs Quote Link to comment Share on other sites More sharing options...
drmop Posted April 7, 2015 Author Share Posted April 7, 2015 Thanks, do you guys keep a feature changelist? Are there any major changes between v2 and v3? What I've learnt so far is mainly via online tutorials and from reading through the code. Quote Link to comment Share on other sites More sharing options...
d13 Posted April 7, 2015 Share Posted April 7, 2015 I think PIXI ideally needs some kind of programming guideThis is very basic but might be a start: https://github.com/kittykatattack/learningPixi drmop 1 Quote Link to comment Share on other sites More sharing options...
drmop Posted April 7, 2015 Author Share Posted April 7, 2015 Excellent, cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.