Rectangle | |
---|---|
environment | |
Creator |
unknown |
Destroyable? |
no |
none | |
no | |
Movement |
none |
Solid? |
yes |
unknown | |
Special properties |
none |
The Rectangle is a square environment piece which is one of the 6 default pieces in the game kit when you create a game from scratch. This means it can be used without being looked for.
XML[]
<object name="rectangle" type="world" color="8421504"> <shape> <perimeter> <polygon x="0" y="0"> <vertex x="-0.4" y="0.4"/> <vertex x="-0.4" y="-0.4"/> <vertex x="0.4" y="-0.4"/> <vertex x="0.4" y="0.4"/> </polygon> </perimeter> <visual priority="3" type="jpg" sourcePixelsPerMeter="80" outline="off" bitmapRelCentroidX="-16.004000000000005" bitmapRelCentroidY="-16.004000000000005"/> <physics source="perimeter" density="10" bounciness="0" friction="0.5" solid="true" anchored="true" collisionSoundURL="assets/gameAssets/deflect.mp3" gravity="false" collisionSoundPriority="1"/> </shape> </object>