Jump to content

N3RD
 Share

Recommended Posts

Hello,

I come from an AS3 Background and have started working with panda.js. So far I am getting used to it, but i do have a question for understanding.

What is the difference between:

Game.Scene.Container vs Game.Scene.Stage vs Game.Scene.World?

 

I have worked with nape before, so the world is for physics i take it. But where does scene.container and scene.stage differ from eachother?

Thanks,

N3RD_L1F3

Link to comment
Share on other sites

game.scene.stage is the main container and it is extended from the base class game.Container and game.Container is a class that can hold other game objects and be moved independently from the stage.

It is useful when you want to layer a bunch of stuff on top of each other like a HUD or a menu on top of the game.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...