# HiX2 experimental world
# Copyright (c) 1993-2025 Tim Riker
# by Tim Riker <Tim@Rikers.org>
#
# This is a team play world

# Typical World definition
#
#world
#name HiX 2.0
#size 400.0
#flagHeight 10.0
#end

# Typical Teleporter
#
# TeleUnit     1.12
# TeleWidth    1.12
# TeleBreadth  4.48
# TeleHeight  10.08
#
#teleporter
#position     x     y     0.0
#rotation     deg
#size         0.56  4.48  20.16
#border       1.12
#end

# Typical link
#
# link
# from from
# to to
# end

# Typical Box
#
# BoxBase     30.0
# BoxHeight    9.42
#
#box
#position     x     y     0.0
#rotation     deg
#size         30.0  30.0  9.42
#end

# Typical pyramid
#
# PyrBase      8.20
# PyrHeight   10.25
#
#pyramid
#position     x     y     0.0
#rotation     deg
#size         8.20  8.20  10.25
#end

# Typical base
#base
#position <x> <y> <z>
#rotation deg -- not yet supported
#size 30.0 30.0 0.0 -- height not yet supported
#color <team number>
#end

# Typical World definition
#
world
name HiX 2.0
size 400.0
flagHeight 0.0
end

# top of the world
box
position 0.0 0.0 29.0
rotation 0.0
size     9.6568542495 4.0 16.0
end
box
position 0.0 0.0 29.0
rotation 45.0
size     9.6568542495 4.0 16.0
end
box
position 0.0 0.0 29.0
rotation 90.0
size     9.6568542495 4.0 16.0
end
box
position 0.0 0.0 29.0
rotation 135.0
size     9.6568542495 4.0 16.0
end

# roof
pyramid
position 0.0 0.0 52.0
rotation 0.0
size     9.6568542495 4.0 5.0
end
pyramid
position 0.0 0.0 52.0
rotation 45.0
size     9.6568542495 4.0 5.0
end
pyramid
position 0.0 0.0 52.0
rotation 90.0
size     9.6568542495 4.0 5.0
end
pyramid
position 0.0 0.0 52.0
rotation 135.0
size     9.6568542495 4.0 5.0
end

# cross bars
box
position 0.0 0.0 29.0
rotation 45.0
size     4 550.0 1.0
end
box
position 0.0 0.0 29.0
rotation 135.0
size     4 550.0 1.0
end

# walls under crossbars
box
position 180.0 180.0 14.0
rotation 135.0
size     0.5 150.0 16.0
end
box
position -180.0 -180.0 14.0
rotation 135.0
size     0.5 150.0 16.0
end
box
position 180.0 -180.0 14.0
rotation 45.0
size     0.5 150.0 16.0
end
box
position -180.0 180.0 14.0
rotation 45.0
size     0.5 150.0 16.0
end
# first level platforms
box
position 180.0 180.0 14.0
rotation 135.0
size     8.0 107.0 1.0
end
box
position -180.0 -180.0 14.0
rotation 135.0
size     8.0 107.0 1.0
end
box
position 180.0 -180.0 14.0
rotation 45.0
size     8.0 107.0 1.0
end
box
position -180.0 180.0 14.0
rotation 45.0
size     8.0 107.0 1.0
end

# boxes at wall ends for access
box
position 80.0 80.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position 280.0 280.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position -80.0 -80.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position -280.0 -280.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position -80.0 80.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position -280.0 280.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position 80.0 -80.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position 280.0 -280.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end

# octagons midplatform
box
position 180.0 180.0 0.0
rotation 0.0
size     19.313708499 8.0 15.0
end
box
position 180.0 180.0 0.0
rotation 45.0
size     19.313708499 8.0 15.0
end
box
position 180.0 180.0 0.0
rotation 90.0
size     19.313708499 8.0 15.0
end
box
position 180.0 180.0 0.0
rotation 135.0
size     19.313708499 8.0 15.0
end

box
position -180.0 -180.0 0.0
rotation 0.0
size     19.313708499 8.0 15.0
end
box
position -180.0 -180.0 0.0
rotation 45.0
size     19.313708499 8.0 15.0
end
box
position -180.0 -180.0 0.0
rotation 90.0
size     19.313708499 8.0 15.0
end
box
position -180.0 -180.0 0.0
rotation 135.0
size     19.313708499 8.0 15.0
end

box
position -180.0 180.0 0.0
rotation 0.0
size     19.313708499 8.0 15.0
end
box
position -180.0 180.0 0.0
rotation 45.0
size     19.313708499 8.0 15.0
end
box
position -180.0 180.0 0.0
rotation 90.0
size     19.313708499 8.0 15.0
end
box
position -180.0 180.0 0.0
rotation 135.0
size     19.313708499 8.0 15.0
end

box
position 180.0 -180.0 0.0
rotation 0.0
size     19.313708499 8.0 15.0
end
box
position 180.0 -180.0 0.0
rotation 45.0
size     19.313708499 8.0 15.0
end
box
position 180.0 -180.0 0.0
rotation 90.0
size     19.313708499 8.0 15.0
end
box
position 180.0 -180.0 0.0
rotation 135.0
size     19.313708499 8.0 15.0
end

# supports
pyramid
position 140.0 140.0 0.0
rotation 45.0
size     2.0 2.0 18.0
end
pyramid
position 140.0 140.0 0.0
rotation 0.0
size     8.0 1.0 5.0
end
pyramid
position 140.0 140.0 0.0
rotation 90.0
size     8.0 1.0 5.0
end
pyramid
position 140.0 140.0 12.0
rotation 0.0
size     8.0 -0.5 -2.0
end
pyramid
position 140.0 140.0 12.0
rotation 90.0
size     8.0 -0.5 -2.0
end
pyramid
position 220.0 220.0 0.0
rotation 45.0
size     2.0 2.0 18.0
end
pyramid
position 220.0 220.0 0.0
rotation 0.0
size     8.0 1.0 5.0
end
pyramid
position 220.0 220.0 0.0
rotation 90.0
size     8.0 1.0 5.0
end
pyramid
position 220.0 220.0 12.0
rotation 0.0
size     8.0 -0.5 -2.0
end
pyramid
position 220.0 220.0 12.0
rotation 90.0
size     8.0 -0.5 -2.0
end

pyramid
position -140.0 -140.0 0.0
rotation 45.0
size     2.0 2.0 18.0
end
pyramid
position -140.0 -140.0 0.0
rotation 0.0
size     8.0 1.0 5.0
end
pyramid
position -140.0 -140.0 0.0
rotation 90.0
size     8.0 1.0 5.0
end
pyramid
position -140.0 -140.0 12.0
rotation 0.0
size     8.0 -0.5 -2.0
end
pyramid
position -140.0 -140.0 12.0
rotation 90.0
size     8.0 -0.5 -2.0
end
pyramid
position -220.0 -220.0 0.0
rotation 45.0
size     2.0 2.0 18.0
end
pyramid
position -220.0 -220.0 0.0
rotation 0.0
size     8.0 1.0 5.0
end
pyramid
position -220.0 -220.0 0.0
rotation 90.0
size     8.0 1.0 5.0
end
pyramid
position -220.0 -220.0 12.0
rotation 0.0
size     8.0 -0.5 -2.0
end
pyramid
position -220.0 -220.0 12.0
rotation 90.0
size     8.0 -0.5 -2.0
end

pyramid
position -140.0 140.0 0.0
rotation 45.0
size     2.0 2.0 18.0
end
pyramid
position -140.0 140.0 0.0
rotation 0.0
size     8.0 1.0 5.0
end
pyramid
position -140.0 140.0 0.0
rotation 90.0
size     8.0 1.0 5.0
end
pyramid
position -140.0 140.0 12.0
rotation 0.0
size     8.0 -0.5 -2.0
end
pyramid
position -140.0 140.0 12.0
rotation 90.0
size     8.0 -0.5 -2.0
end
pyramid
position -220.0 220.0 0.0
rotation 45.0
size     2.0 2.0 18.0
end
pyramid
position -220.0 220.0 0.0
rotation 0.0
size     8.0 1.0 5.0
end
pyramid
position -220.0 220.0 0.0
rotation 90.0
size     8.0 1.0 5.0
end
pyramid
position -220.0 220.0 12.0
rotation 0.0
size     8.0 -0.5 -2.0
end
pyramid
position -220.0 220.0 12.0
rotation 90.0
size     8.0 -0.5 -2.0
end

pyramid
position 140.0 -140.0 0.0
rotation 45.0
size     2.0 2.0 18.0
end
pyramid
position 140.0 -140.0 0.0
rotation 0.0
size     8.0 1.0 5.0
end
pyramid
position 140.0 -140.0 0.0
rotation 90.0
size     8.0 1.0 5.0
end
pyramid
position 140.0 -140.0 12.0
rotation 0.0
size     8.0 -0.5 -2.0
end
pyramid
position 140.0 -140.0 12.0
rotation 90.0
size     8.0 -0.5 -2.0
end
pyramid
position 220.0 -220.0 0.0
rotation 45.0
size     2.0 2.0 18.0
end
pyramid
position 220.0 -220.0 0.0
rotation 0.0
size     8.0 1.0 5.0
end
pyramid
position 220.0 -220.0 0.0
rotation 90.0
size     8.0 1.0 5.0
end
pyramid
position 220.0 -220.0 12.0
rotation 0.0
size     8.0 -0.5 -2.0
end
pyramid
position 220.0 -220.0 12.0
rotation 90.0
size     8.0 -0.5 -2.0
end

# base guard posts
box
position 392.5 0.0 29.0
rotation 0.0
size     7.5 7.5 16.0
end
box
position -392.5 0.0 29.0
rotation 0.0
size     7.5 7.5 16.0
end
box
position 0.0 392.5 29.0
rotation 0.0
size     7.5 7.5 16.0
end
box
position 0.0 -392.5 29.0
rotation 0.0
size     7.5 7.5 16.0
end

# walkways on edges
#overlap platforms to prevent flag hiding
box
position 392.5 0.0 29.0
rotation 0.0
size     7.5 400.0 1.0
end
box
position -392.5 0.0 29.0
rotation 0.0
size     7.5 400.0 1.0
end
box
position 0.0 392.5 29.0
rotation 90.0
size     7.5 400.0 1.0
end
box
position 0.0 -392.5 29.0
rotation 90.0
size     7.5 400.0 1.0
end
# boxes for access
box
position 400.0 180.0 0.0
rotation 45.0
size     30.0 30.0 15.0
end
box
position 400.0 -180.0 0.0
rotation 45.0
size     30.0 30.0 15.0
end
box
position -400.0 180.0 0.0
rotation 45.0
size     30.0 30.0 15.0
end
box
position -400.0 -180.0 0.0
rotation 45.0
size     30.0 30.0 15.0
end
box
position 180.0 400.0 0.0
rotation 45.0
size     30.0 30.0 15.0
end
box
position -180.0 400.0 0.0
rotation 45.0
size     30.0 30.0 15.0
end
box
position 180.0 -400.0 0.0
rotation 45.0
size     30.0 30.0 15.0
end
box
position -180.0 -400.0 0.0
rotation 45.0
size     30.0 30.0 15.0
end

# boxes in the middle in front of bases
box
position 200.0 0.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position -200.0 0.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position 0.0 200.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end
box
position 0.0 -200.0 0.0
rotation 0.0
size     30.0 30.0 15.0
end

# teleporter elevators in the corners
teleporter
position     390.0 390.0 0.0
rotation     45.0
size         0.56  4.48  27.7
border       1.12
end
teleporter
position     390.0 390.0 30.0
rotation     45.0
size         0.56  4.48  15.0
border       1.12
end
link
from 0
to 2
end
link
from 1
to 3
end
link
from 2
to 0
end
link
from 3
to 1
end

teleporter
position     -390.0 -390.0 0.0
rotation     45.0
size         0.56  4.48  27.7
border       1.12
end
teleporter
position     -390.0 -390.0 30.0
rotation     45.0
size         0.56  4.48  15.0
border       1.12
end
link
from 4
to 6
end
link
from 5
to 7
end
link
from 6
to 4
end
link
from 7
to 5
end

teleporter
position     390.0 -390.0 0.0
rotation     135.0
size         0.56  4.48  27.7
border       1.12
end
teleporter
position     390.0 -390.0 30.0
rotation     135.0
size         0.56  4.48  15.0
border       1.12
end
link
from 8
to 10
end
link
from 9
to 11
end
link
from 10
to 8
end
link
from 11
to 9
end

teleporter
position     -390.0 390.0 0.0
rotation     135.0
size         0.56  4.48  27.7
border       1.12
end
teleporter
position     -390.0 390.0 30.0
rotation     135.0
size         0.56  4.48  15.0
border       1.12
end
link
from 12
to 14
end
link
from 13
to 15
end
link
from 14
to 12
end
link
from 15
to 13
end

# red team base
base
position -340.0 0.0 26.0
rotation 45.0
size 35.0 35.0 4.0
color 1
end
# green team base
base
position 340.0 0.0 26.0
rotation 45.0
size 35.0 35.0 4.0
color 2
end
# blue team base
base
position 0.0 -340.0 26.0
rotation 45.0
size 35.0 35.0 4.0
color 3
end
# purple team base
base
position 0.0 340.0 26.0
rotation 45.0
size 35.0 35.0 4.0
color 4
end

# pyramids under red base
pyramid
position -340.0 -45.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position -340.0 45.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position -295.0 0.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position -385.0 0.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
# pyramids under green base
pyramid
position 340.0 -45.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position 340.0 45.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position 295.0 0.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position 385.0 0.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
# pyramids under blue base
pyramid
position -45.0 -340.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position 45.0 -340.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position 0.0 -295.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position 0.0 -385.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
# pyramids under purple base
pyramid
position -45.0 340.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position 45.0 340.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position 0.0 295.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
pyramid
position 0.0 385.0 0.0
rotation 0.0
size     7.5 7.5 26.0
end
