MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Split Screen

Add split-screen multiplayer cameras and picture-in-picture camera view sprites to MakeCode Arcade games.

set camera region

Problem it solves

You want to customize how the screen is divided between players, like putting one player on the top half and another on the bottom half.

What this block does

Assigns a specific camera to a layout section of the screen, such as the top half, left third, or bottom-right corner.

The block

Block ID: splitscreensetcameraregion

set camera $camera region to $region block

Parameters

NameTypeDefaultMeaning
cameraCameraCamera.Camera1The camera view you want to position
regionCameraRegionCameraRegion.VerticalLeftHalfThe section of the screen where this camera should render

Example

splitScreen.setCameraRegion(splitScreen.Camera.Camera1, splitScreen.CameraRegion.HorizontalTopHalf)
splitScreen.setCameraRegion(splitScreen.Camera.Camera2, splitScreen.CameraRegion.HorizontalBottomHalf)

Add the extension

Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.