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 split screen render size width height

Problem it solves

You want the split-screen layout to occupy only part of the display, leaving room around the edges for custom borders or player stats.

What this block does

Changes the overall width and height of the split-screen display area.

The block

Block ID: splitscreen_setRenderSize

set split screen render size width $width height $height block

Parameters

NameTypeDefaultMeaning
widthnumber160The total width in pixels of the split-screen area
heightnumber120The total height in pixels of the split-screen area

Example

splitScreen.setRenderSize(160, 100)

Add the extension

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