2
Copyright 2006 by Mark Weyer
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
#include "dungeon_boden.inc"
21
#declare Eigenes_Licht = 1;
24
#declare Eigene_Kamera = 1;
32
#declare Hintergrund = 0;
34
#include "cuyopov.inc"
37
#declare Ueberlappung = 0.03;
39
#declare N = array[12] {
40
1, 2, 3, 2, 3, 2, 2, 5, 4, 5, 3, 3
42
#declare X = array[12][5] {
43
{0,0,0,0,0}, {-1,1,0,0,0},
44
{-2,0,2,0,0}, {-1,1,0,0,0},
45
{-3,0,3,0,0}, {-2,1,0,0,0}, {-1,2,0,0,0},
46
{-4,-2,0,2,4}, {-3,-1,1,3,0},
47
{-5,-2,0,2,5}, {-4,-1,3,0,0}, {-3,1,4,0,0}
49
#declare Z = array[12] {
50
1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5
53
#declare G = array[13] { // Der letzte Eintrag ist ein Dummy f�r den Boden
54
4,4,4,4,3,3,3,3,3,2,2,2,0
57
#macro BlockAusWand(Wand)
60
object {Wand rotate 90*y translate z}
61
object {Wand rotate 180*y translate x+z}
62
object {Wand rotate 270*y translate x}
67
object {Block translate <X,0,Z> no_shadow}
74
SetzBlock(X[Version][i],Z[Version])
79
object {Boden translate <-1,0,-1>}
80
SetzBlock(-3,0) SetzBlock(-3,-1) SetzBlock(2,0) SetzBlock(2,-1)
82
SetzBlock(-1,0) SetzBlock(0,0)
83
clipped_by {box {-1 1+Hoehe*y}}
94
location <1/2,Hoehe*2/3,1/2>
97
#case (4) #local hoch=1; #local runter=1; #break
98
#case (3) #local hoch=1/2; #local runter=1; #break
99
#case (2) #local hoch=1/2; #local runter=1/2; #break
100
#case (0) #local hoch=0; #local runter=1; #break
103
direction (hoch-runter)/2*y+z
106
light_source { // Fackel in der rechten Hand