Game Lab Documentation

showMobileControls

Category:Game Lab

Changes the mobile controls visible beneath the play space.

Syntax

showMobileControls(spaceButtonVisible, dpadVisible, dpadFourWay, mobileOnly)

Parameters

NameTypeRequired?Description
spaceButtonVisibleBoolean

Indicates whether the space button should be visible.

dpadVisibleBoolean
dpadFourWayBoolean

Indicates whether the controls for only the four cardinal directions should be visible.

mobileOnlyBoolean

Indicates whether the controls should appear on mobile devices only (true), or on all devices (false).

Found a bug in the documentation? Let us know at support@code.org.