source wt.tcl

set	Castle [texture stone2.gif]
set Pillar [texture stone1.gif]
set Ground [texture desktop/dirt.gif]
set sky [texture desktop/ether.gif]

# inner wall -- base 0
vertex 30 3   
vertex 30 10
vertex 25 10
vertex 22 10
vertex 13 10
vertex 10 10
vertex 0 10
vertex 0 -10
vertex 10 -10
vertex 13 -10
vertex 22 -10
vertex 25 -10
vertex 30 -10
vertex 30 -3

# outer wall -- base 14
vertex 31 3   
vertex 31 11
vertex 25 11
vertex 22 11
vertex 13 11
vertex 10 11
vertex -1 11
vertex -1 -11
vertex 10 -11
vertex 13 -11
vertex 22 -11
vertex 25 -11
vertex 31 -11
vertex 31 -3

# 28
vertex -50 -50 
vertex -50 50
vertex 50 50
vertex 50 -50

# pillar -- base 32
vertex 6 -7         
vertex 5.707 -7.707	
vertex 5 -8
vertex 4.203 -7.707
vertex 4 -7
vertex 4.203 -6.203
vertex 5 -6
vertex 5.707 -6.203

# pillar2 -- base 40
vertex 6 7         
vertex 5.707 6.203
vertex 5 6
vertex 4.203 6.203
vertex 4 7
vertex 4.203 7.707
vertex 5 8
vertex 5.707 7.707

# outside
region 10 10 $Ground $Ground
# outdoors
region 0 10 $Ground $sky
#the castle
region 10 10 $Castle $Castle
# doorways & windows
region 0 5 $Castle $Castle
region 0.1 8 $Castle $Castle
# indoors
region 0 9.5 $Castle $Castle
# pillars
region 10 10 $Castle $Castle

# the outer walls
#wall 28 31 $sky 1 0 0.1 0.1 0 0
#wall 31 30 $sky 1 0 0.1 0.1 0 0
#wall 30 29 $sky 1 0 0.1 0.1 0 0
#wall 29 28 $sky 1 0 0.1 0.1 0 0
skywall [wall 28 31 $sky 1 0 0.1 0.1 0 0] 3
skywall [wall 31 30 $sky 1 0 0.1 0.1 0 0] 3
skywall [wall 30 29 $sky 1 0 0.1 0.1 0 0] 3
skywall [wall 29 28 $sky 1 0 0.1 0.1 0 0] 3

wall 0 1 $Castle 5 2 0.2 0.1 0 0
wall 1 2 $Castle 5 2 0.2 0.1 0 0
wall 2 3 $Castle 5 4 0.2 0.1 0 0
wall 3 4 $Castle 5 2 0.2 0.1 0 0
wall 4 5 $Castle 5 4 0.2 0.1 0 0
wall 5 6 $Castle 5 2 0.2 0.1 0 0
wall 6 7 $Castle 5 2 0.2 0.1 0 0
wall 7 8 $Castle 5 2 0.2 0.1 0 0
wall 8 9 $Castle 5 4 0.2 0.1 0 0
wall 9 10 $Castle 5 2 0.2 0.1 0 0
wall 10 11 $Castle 5 4 0.2 0.1 0 0
wall 11 12 $Castle 5 2 0.2 0.1 0 0
wall 12 13 $Castle 5 2 0.2 0.1 0 0
wall 13 0 $Castle 5 3 0.2 0.1 0 0


wall 27 26 $Castle 1 2 0.2 0.1 0 0
wall 26 25 $Castle 1 2 0.2 0.1 0 0
wall 25 24 $Castle 1 4 0.2 0.1 0 0
wall 24 23 $Castle 1 2 0.2 0.1 0 0
wall 23 22 $Castle 1 4 0.2 0.1 0 0
wall 22 21 $Castle 1 2 0.2 0.1 0 0
wall 21 20 $Castle 1 2 0.2 0.1 0 0
wall 20 19 $Castle 1 2 0.2 0.1 0 0
wall 19 18 $Castle 1 4 0.2 0.1 0 0
wall 18 17 $Castle 1 2 0.2 0.1 0 0
wall 17 16 $Castle 1 4 0.2 0.1 0 0
wall 16 15 $Castle 1 2 0.2 0.1 0 0
wall 15 14 $Castle 1 2 0.2 0.1 0 0
wall 14 27 $Castle 1 3 0.2 0.1 0 0

# door
wall 14 0 $Castle 3 2 0.2 0.1 0 0
wall 13 27 $Castle 3 2 0.2 0.1 0 0

# windows
wall 19 5 $Castle 4 2 0.2 0.1 0 0
wall 4 18 $Castle 4 2 0.2 0.1 0 0
wall 17 3 $Castle 4 2 0.2 0.1 0 0
wall 2 16 $Castle 4 2 0.2 0.1 0 0
wall 8 22 $Castle 4 2 0.2 0.1 0 0
wall 23 9 $Castle 4 2 0.2 0.1 0 0
wall 10 24 $Castle 4 2 0.2 0.1 0 0
wall 25 11 $Castle 4 2 0.2 0.1 0 0

#pillar
wall 32 33 $Pillar 5 6 0.2 0.1 0 0
wall 33 34 $Pillar 5 6 0.2 0.1 0 0
wall 34 35 $Pillar 5 6 0.2 0.1 0 0
wall 35 36 $Pillar 5 6 0.2 0.1 0 0
wall 36 37 $Pillar 5 6 0.2 0.1 0 0
wall 37 38 $Pillar 5 6 0.2 0.1 0 0
wall 38 39 $Pillar 5 6 0.2 0.1 0 0
wall 39 32 $Pillar 5 6 0.2 0.1 0 0

#pillar
wall 40 41 $Pillar 5 6 0.2 0.1 0 0
wall 41 42 $Pillar 5 6 0.2 0.1 0 0
wall 42 43 $Pillar 5 6 0.2 0.1 0 0
wall 43 44 $Pillar 5 6 0.2 0.1 0 0
wall 44 45 $Pillar 5 6 0.2 0.1 0 0
wall 45 46 $Pillar 5 6 0.2 0.1 0 0
wall 46 47 $Pillar 5 6 0.2 0.1 0 0
wall 47 40 $Pillar 5 6 0.2 0.1 0 0

