1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
|
#
# Copyright <=2004,2014 by Immanuel Halupczok
# Modified 2005,2006 by Immanuel Halupczok
# Modified 2006 by Mark Weyer
# Maintenance modifications 2006,2011 by the cuyo developers
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# The above notices apply to this file and to:
# i3Dreieck.xpm.gz, i3Grau.xpm.gz, i3Plus.xpm.gz, i3Stern.xpm.gz
# i3Gitter.xpm.gz, i3Kreis.xpm.gz, i3Quadrat.xpm.gz,
# i3Bunt.xcf, i3Grau.xcf
#
DreiD={
name="3D"
author="Immi"
description="Well, just a little bit 3D."
neighbours=<neighbours_3D>
greypic=Box
startpic=Gitter
pics=Quadrat,Dreieck,Kreis,Stern,Plus
numexplode=7
numexplode[easy]=5
startdist[1]="AA......AA",
"AA......AA",
"AA......AA",
"AA......AA",
"AA......AA",
"AAAAAAAAAA"
startdist="AA......AA",
"AA......AA",
"AA......AA",
"AA......AA",
"AAAAAAAAAA"
bgcolor=30,30,30
textcolor=50,50,50
#chaingrass=1
#chaingrass[easy]=0
randomgreys[1]=40
randomgreys[2]=120
<<
var basis, oo, uu, ll, rr, hi;
var fall_richtung; # Wie rum ist das Fall (relativ zu mir):
# 0 = ich bin links, 1 = ich bin oben; etc.
Objekt_init = { if loc_x == 4 -> fall_richtung = 0 else fall_richtung = 2; };
Objekt_turn = { fall_richtung = (fall_richtung + 1) % 4; };
Objekt={
hi = loc_x % 2;
if falling -> { # Fallend
if turn == 0 && !hi && fall_richtung == 0 -> {
V*; W*@(1);
} else if hi && turn==0 && fall_richtung == 2 -> {
Z*; Y@(1)*;
} else if hi -> a* else -> U*;
#out1 = fall_richtung;
} else {
if hi -> basis = 5 else basis = 1;
oo = kind@(0,-1) == kind;
uu = kind@(0,1) == kind;
ll = kind@(-2,0) == kind;
rr = kind@(2,0) == kind;
pos=basis+2*ll +9*oo ; [qu=Q_TL] *;
pos-=1; [qu=Q_TR_BR] if hi -> @(-1,-.5)* else *@(-1,-.5);
pos=basis+2*(1-rr)+9*oo ; [qu=Q_TR] *;
pos+=1; [qu=Q_TL_BL] if hi -> @(1,-.5)* else *@(1,-.5);
pos=basis+2*ll +9*(1-uu); [qu=Q_BL] *;
pos-=1; [qu=Q_BR_TR] if hi -> @(-1,.5)* else *@(-1,.5);
pos=basis+2*(1-rr)+9*(1-uu); [qu=Q_BR] *;
pos+=1; [qu=Q_BL_TL] if hi -> @(1,.5)* else *@(1,.5);
if hi && kind@(-1,.5) == kind -> {
[qu=Q_BL] X*;
if kind == Gitter -> [qu=Q_BR_TR] W@(-1,.5)*;
};
}; # Nicht fallend
}; # Objekt
>>
Box={
pics=i3Grau.xpm
<<
Box={
if informational -> A*
else if loc_x % 2 -> {
[qu=Q_TR_BR] C@(-1,-.5)*;
[qu=Q_BR_TR] C@(-1,.5)*;
[qu=Q_TR_BR] H@(-1,.5)*;
D*;
I@(0,1)*;
[qu=Q_TL_BL] E@(1,-.5)*;
[qu=Q_BL_TL] E@(1,.5)*;
[qu=Q_TL_BL] J@(1,.5)*;
} else {
[qu=Q_TR_BR] F*@(-1,-.5);
[qu=Q_BR_TR] F*@(-1,.5);
B*@(0,-1);
G*;
[qu=Q_BL_TL] C*@(1,-.5);
[qu=Q_TL_BL] H*@(1,-.5);
[qu=Q_BL_TL] H*@(1,.5);
};
};
>>
}
Gitter={
pics=i3Gitter.xpm
<< Gitter=Objekt; >>
}
Quadrat={
pics=i3Quadrat.xpm
<< Quadrat=Objekt; Quadrat.init=Objekt_init; Quadrat.turn=Objekt_turn; >>
}
Kreis={
pics=i3Kreis.xpm
<< Kreis=Objekt; Kreis.init=Objekt_init; Kreis.turn=Objekt_turn; >>
}
Dreieck={
pics=i3Dreieck.xpm
<< Dreieck=Objekt; Dreieck.init=Objekt_init; Dreieck.turn=Objekt_turn; >>
}
Stern={
pics=i3Stern.xpm
<< Stern=Objekt; Stern.init=Objekt_init; Stern.turn=Objekt_turn; >>
}
Plus={
pics=i3Plus.xpm
<< Plus=Objekt; Plus.init=Objekt_init; Plus.turn=Objekt_turn; >>
}
}
|