jStage.EllipseActor

Description

A special type of actor that takes on elliptical bounds.

Hierarchy

Function List

Function Documentation

EllipseActor(base, points, xrad, yrad)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.

points:The number of vertices to use in constructing the ellipse. Higher is more 'circular', lower is faster.

xrad:The radius of the ellipse along the x-axis.

yrad:The radius of the ellipse along the y-axis.