SamYan Posted September 18, 2018 Share Posted September 18, 2018 Hi. I just started in Pixi js. Can someone explain to me if a container is used to create different levels of game? Thanks in advance Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 18, 2018 Share Posted September 18, 2018 Please follow the tutorial or book: https://github.com/kittykatattack/learningPixi SamYan 1 Quote Link to comment Share on other sites More sharing options...
SamYan Posted September 18, 2018 Author Share Posted September 18, 2018 Thank you for response Ivan, but i've already looked, still don't understand. Can you tell me please if for example Game Menu <=> Game will be 2 different containers ? Thanks again! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 18, 2018 Share Posted September 18, 2018 I cant explain it to you if you dont make your first game on pixi on your own. Containers are there for two big purposes: 1. transform composition 2. when you remove container, all children go away too Quote Link to comment Share on other sites More sharing options...
SamYan Posted September 18, 2018 Author Share Posted September 18, 2018 What would be every view / scene ? It would be child container of stage container or what ? I just to understang how moving between scenes. Basically the logic. Spasibo Ivan! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 19, 2018 Share Posted September 19, 2018 In the list of pixi-related projects, https://github.com/cursedcoder/awesome-pixijs. there is https://github.com/gamestdio/pixi-engine which has SceneManager. Quote Link to comment Share on other sites More sharing options...
SamYan Posted September 19, 2018 Author Share Posted September 19, 2018 6 hours ago, ivan.popelyshev said: In the list of pixi-related projects, https://github.com/cursedcoder/awesome-pixijs. there is https://github.com/gamestdio/pixi-engine which has SceneManager. Thanks. Quote Link to comment Share on other sites More sharing options...
hamdirizal Posted September 21, 2018 Share Posted September 21, 2018 Here how I do it. I use Containers as the game scenes. To go to a particular scene, just make it visible, and hide the others. My structure basically like this Stage: -- Title scene -- Play Scene -- Game over Scene Quote Link to comment Share on other sites More sharing options...
SamYan Posted September 25, 2018 Author Share Posted September 25, 2018 On 9/21/2018 at 11:23 AM, hamdirizal said: Here how I do it. I use Containers as the game scenes. To go to a particular scene, just make it visible, and hide the others. My structure basically like this Stage: -- Title scene -- Play Scene -- Game over Scene Thanks, exactly what i'm doing now. 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.