Code: Select all
<?xml version="1.0"?>
<!DOCTYPE resource SYSTEM "map-0.5.0-a.dtd">
<resource type='acemap' name='Ramps and flying cycles' version='0.0.1' author='luke@dashjr.org' category='demo'>
<map version='3'>
<world>
<border>
<effect type='solid'/>
<color r='0' g='1' b='0' alpha='0.1'/>
<foreach item='level' array='[0, -1]'>
<var name='lvlZ' value='level*8'/>
<plane>
<!-- floor -->
<origin>
<point x='0' y='0' z='lvlZ'/>
</origin>
<point x=' 0' y=' 0' z='lvlZ'/>
<point x='40' y=' 0' z='lvlZ'/>
<point x='40' y='18' z='lvlZ'/>
<point x=' 0' y='18' z='lvlZ'/>
<hole>
<point x='14' y=' 8'/>
<point x='28' y=' 8'/>
<point x='28' y='17'/>
<point x='14' y='17'/>
</hole>
</plane>
</foreach>
</border>
<border>
<effect type='solid'/>
<color r='0.3' g='0.3' b='0.3'/>
<plane>
<!-- walls going full height of all floors -->
<point x=' 0' y=' 0' z='-8'/>
<point x='40' y=' 0' z='-8'/>
<point x='40' y='18' z='-8'/>
<point x=' 0' y='18' z='-8'/>
<point x=' 0' y=' 0' z='-8'/>
<point x=' 0' y=' 0' z=' 8'/>
<point x=' 0' y='18' z=' 8'/>
<point x='40' y='18' z=' 8'/>
<point x='40' y=' 0' z=' 8'/>
<point x=' 0' y=' 0' z=' 8'/>
</plane>
<plane>
<!-- ramp between the floors -->
<point x='14' y='15' z=' 0'/>
<point x='21' y='15' z='-1'/>
<curve/>
<point x='23' y='13' z='-2'/>
<curve/>
<point x='21' y='10' z='-3'/>
<curve/>
<point x='18' y='13' z='-4'/>
<curve/>
<point x='21' y='15' z='-5'/>
<curve/>
<point x='23' y='13' z='-6'/>
<curve/>
<point x='21' y='10' z='-7'/>
<point x='14' y='10' z='-8'/>
<point x='14' y=' 9' z='-8'/>
<point x='21' y=' 9' z='-8'/>
<curve/>
<point x='26' y='13' z='-7'/>
<curve/>
<point x='21' y='16' z='-6'/>
<curve/>
<point x='15' y='13' z='-5'/>
<curve/>
<point x='21' y=' 9' z='-4'/>
<curve/>
<point x='26' y='13' z='-3'/>
<curve/>
<point x='21' y='16' z='-2'/>
<point x='21' y='16' z='-1'/>
</plane>
</border>
<border>
<!-- portal from bottom to top -->
<effect type='portal'>
<target y='y+1' z='z+8'/>
</effect>
<window alpha='1'/>
<color r='0' g='0' b='1' alpha='0.3'/>
<plane>
<point x='32' y='14' z='-8'/>
<point x='35' y='14' z='-8'/>
<point x='35' y='14' z=' 0'/>
<point x='32' y='14' z=' 0'/>
</plane>
</border>
<border>
<!-- portal from top to bottom -->
<effect type='portal'>
<target y='y+1' z='z-8'/>
</effect>
<window alpha='1'/>
<color r='0' g='0' b='1' alpha='0.3'/>
<plane>
<point x='32' y='14' z=' 0'/>
<point x='35' y='14' z=' 0'/>
<point x='35' y='14' z=' 8'/>
<point x='32' y='14' z=' 8'/>
</plane>
</border>
<zone>
<!-- zones you get points for being inside -->
<!-- due to overlap, you get double in the center -->
<inside>
<adjust name='who.score' value='1'/>
</inside>
<color r='0' g='1' b='0' alpha='0.5'/>
<sphere radius='2'>
<point x='19' y=' 3' z=' 5'/>
<stretch z='z*2.5'/>
</sphere>
</zone>
</world>
</map>
</resource>