arcade
arcade copied to clipboard
Add a split screen example using Camera2D
This is a simple example of how to create a split screen example using Camera2D and uses the PyMunk physics engine.
In the example, we create two cameras, and change their viewports to be half of the screen. When drawing the scene, we loop through each camera and draw our scene, then in update() we center the cameras on the players. We also use the default camera to draw a divider.
It also contains other useful examples, such as zooming out the camera, and resizing the split-screens when the window is resized.