Skip to content

WASDCueNode

Overview

A node that provides an interaction cue for dragging (originally for the balloon in Balloons and Static Electricity). Includes arrow and letter keys to indicate that the user can use WASD or arrow keys to move the object around the play area. Provide the boundsProperty for the object for automatic resizing around the object.

@author Jesse Greenberg @author Michael Kauzmann (PhET Interactive Simulations)

Class WASDCueNode

import { WASDCueNode } from 'scenerystack/scenery-phet';

Constructor

new WASDCueNode( boundsProperty : TReadOnlyProperty<Bounds2> )

Instance Methods

Instance Properties

wNode : Node

(protected, readonly)

aNode : Node

(protected, readonly)

sNode : Node

(protected, readonly)

dNode : Node

(protected, readonly)

Source Code

See the source for WASDCueNode.ts in the scenery-phet repository.