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 camera views and picture-in-picture viewports to Arcade games for multiplayer or mini-maps.

set split screen render size width height

Problem it solves

You want your split-screen view area to use a custom width and height instead of taking up the entire screen.

What this block does

Sets the width and height of the main split-screen display area.

The block

Block ID: splitscreen_setRenderSize

set split screen render size width $width height $height

Parameters

NameTypeDefaultMeaning
widthnumber160The overall render width in pixels.
heightnumber120The overall render height in pixels.

Example

splitScreen.setRenderSize(160, 120)

Add the extension

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