Created
February 18, 2012 17:59
-
-
Save JakeCoxon/1860406 to your computer and use it in GitHub Desktop.
Basic level of pinball
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<level name="Basic Level" size="480,1000"> | |
<!-- corners --> | |
<wallArc at="100,100" relativeTo="topleft" | |
size="100,100" angles="180,270" /> | |
<wallArc at="-100,100" relativeTo="topright" | |
size="100,100" angles="270,360" /> | |
<!-- from top left to top right --> | |
<wall> | |
<point at="100,0" relativeTo="topleft" /> | |
<point at="-100,0" relativeTo="topright" /> | |
</wall> | |
<!-- from top left to bottom left --> | |
<wall> | |
<point at="0,100" relativeTo="topleft" /> | |
<point at="0,-130" relativeTo="bottomleft" /> | |
<point at="100,-85" relativeTo="bottomleft" /> | |
</wall> | |
<!-- slide to the right of the flipper --> | |
<wall> | |
<point at="-31,-130" relativeTo="bottomright" /> | |
<point at="-130,-85" relativeTo="bottomright" /> | |
</wall> | |
<!-- from top right to bottom right --> | |
<wall> | |
<point at="0,100" relativeTo="topright" /> | |
<point at="0,0" relativeTo="bottomright" /> | |
</wall> | |
<!-- ball chute on the right --> | |
<wall> | |
<point at="-30,-200" relativeTo="bottomright" /> | |
<point at="-30,0" relativeTo="bottomright" /> | |
</wall> | |
<!-- ball hatch over the chute --> | |
<wall name="chuteHatch"> | |
<point at="-30,-200" relativeTo="bottomright" /> | |
<point at="0,-230" relativeTo="bottomright" /> | |
</wall> | |
<!-- triangle on left --> | |
<wall> | |
<point at="0,300" relativeTo="topleft" /> | |
<point at="90,370" relativeTo="topleft" /> | |
<point at="0,550" relativeTo="topleft" /> | |
</wall> | |
<!-- sensor at top of chute to enable ball hatch --> | |
<sensor at="-15,-260" relativeTo="bottomright" radius="2" name="sensor" /> | |
<!-- bumpers --> | |
<bumper at="130,110" radius="50" name="bumpers-0" /> | |
<bumper at="300,150" radius="50" name="bumpers-1" /> | |
<bumper at="328,300" radius="64" name="bumpers-2" /> | |
<!-- A frame which covered the whole level minus the chute on the right --> | |
<frame> | |
<topLeft at="0,0" relativeTo="topleft" /> | |
<bottomRight at="-30,0" relativeTo="bottomright" /> | |
<children> | |
<flipper at="-120,-80" relativeTo="bottomcenter" type="left" length="100" /> | |
<flipper at="120,-80" relativeTo="bottomcenter" type="right" length="100" /> | |
</children> | |
</frame> | |
<!-- When the sensor senses the hatch enables and --> | |
<!-- when the level resets the hatch disables --> | |
<event for="sensor" when="onSense" target="chuteHatch" action="enable" /> | |
<event for="level" when="onReset" target="chuteHatch" action="disable" /> | |
</level> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment