jStage.RectangleActor

Description

An actor consisting of four vertices and exposes methods to perform rectangular-based positioning, etc.

Hierarchy

Function List

Function Documentation

RectangleActor(base, width, height)constructor

Parameters

base:Another Actor upon which to 'base' this one (in the scene graph). A properly implemented jStage game will use a jStage.Stage as the base of the scene graph, so this parameter should not be null or undefined.

width:The width, in pixels, of this RectangleActor.

height:The width, in pixels, of this RectangleActor.