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.

create camera view sprite width height

Problem it solves

You want a picture-in-picture mini-map, rear-view mirror, or security monitor sprite floating on screen while the game plays.

What this block does

Creates a sprite that displays a live camera view of your game world at the specified size.

The block

Block ID: splitscreen_createCameraView

create camera view sprite width $width height $height block

Parameters

NameTypeDefaultMeaning
widthnumber160Width of the camera view sprite in pixels
heightnumber120Height of the camera view sprite in pixels

Returns

Sprite — The newly created camera view sprite.

Example

let miniCam = splitScreen.createCameraView(40, 30)

Add the extension

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