Jump to content

Splitscreen game in Pixi?


skeddles
 Share

Recommended Posts

Trying to figure out how to make a simple split screen game. I've tried to do it with pixi-viewport, but it seems you have to add all the elements to the viewport in order to render it. I'm not even sure how to render the viewport to only part of the screen as it seems to fill the renderer.

Does anyone know what the best method for doing this would be?

Link to comment
Share on other sites

Multi-camera is a big problem. Even Phaser3 doesnt have it.

Best way: write your own stage with your own camera. Requires serious knowledge about pixi scene tree. I had a fork with that ability: https://gameofbombs.github.io/pixi-bin/index.html?s=camera&f=mirror.js&title=2 bunnies 2 cameras That's based on pixi-v3 and changes were very big.

Another way: store your own scene independently and create pixi trees according to camera position.

 

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...