Difference between revisions of "ShapeType"

m
(Added new 0.8.0 ShapeTypes.)
Line 3: Line 3:
 
;circle: The Shape is a [[CircleShape]].
 
;circle: The Shape is a [[CircleShape]].
 
;polygon: The Shape is a [[PolygonShape]].
 
;polygon: The Shape is a [[PolygonShape]].
 +
{{newin|[[0.8.0]]|type=ShapeTypes|plural=yes}}
 +
;edge: The Shape is a [[EdgeShape]].
 +
;chainshape: The Shape is a [[ChainShape]].
 
== See Also ==
 
== See Also ==
 
* [[parent::Shape]]
 
* [[parent::Shape]]

Revision as of 03:33, 11 April 2012

The different types of Shapes, as returned by Shape:getType.

Constants

circle
The Shape is a CircleShape.
polygon
The Shape is a PolygonShape.
Available since LÖVE 0.8.0
These ShapeTypes are not supported in earlier versions.
edge
The Shape is a EdgeShape.
chainshape
The Shape is a ChainShape.

See Also

Other Languages