/usr/share/games/cuyo/kacheln6.ld is in cuyo-data 2.0.0brl1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #
# Copyright 2006,2011 by Mark Weyer
# Modified 2010 by Mark Weyer
# Maintenance modifications 2008,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
#
Kacheln_Sechseck = {
name = "Tiling I"
author = "Mark Weyer"
sorten = 5
pics = Kachel*<sorten>
greypic = Kachel
startpic = Kachel
startdist = "....***...","....***...","...*+*+*..",
"..**+++**.","..*+++++*.",".***+++***",".*********"
numexplode = 8
numexplode[easy] = 6
neighbours = <neighbours_hex6>
<<
var quadrat_links, quadrat_unten, quadrat_rechts,
dreieck_links, dreieck_rechts;
>>
Kachel = {
pics = mkaSechseckKacheln.xpm, mkaSechseckRahmen.xpm
<<
var links, unten, rechts;
Kachel.init = {
quadrat_links = rnd(sorten);
quadrat_unten = rnd(sorten);
quadrat_rechts = rnd(sorten);
dreieck_links = rnd(sorten);
dreieck_rechts = rnd(sorten);
};
Kachel = {
links = kind@(-1,0.5)!=nothing && kind@(-1,0.5)!=outside;
unten = kind@(0,1)!=nothing && kind@(0,1)!=outside;
rechts = kind@(1,0.5)!=nothing && kind@(1,0.5)!=outside;
file=1;
pos=2*(kind@(0,-1)!=nothing && kind@(0,-1)!=outside);
if kind@(-1,-0.5)!=nothing && kind@(-1,-0.5)!=outside
-> {qu=Q_BL_TL; pos+=1;}
else qu=Q_TL_TL;
*;
pos=2*(kind@(0,-1)!=nothing && kind@(0,-1)!=outside);
if kind@(1,-0.5)!=nothing && kind@(1,-0.5)!=outside
-> qu=Q_TR_TR
else {qu=Q_BR_TR; pos+=1;};
*;
pos=2-2*unten;
if links
-> {qu=Q_TL_BL; pos=(pos-1)%4;}
else qu=Q_BL_BL;
*;
pos=2-2*unten;
if rechts
-> qu=Q_BR_BR
else {qu=Q_TR_BR; pos=(pos-1)%4;};
*;
qu=Q_ALL;
file=0;
pos=6*(kind-Kachel);
*;
if links
-> {
if ????1? -> pos=6*(kind-Kachel)+3 else pos=6*quadrat_links+3;
qu=Q_BL;
*;
pos-=1;
qu=Q_BR_TR;
*@(-1,0.5);
if unten
-> {
if ???11? -> pos=6*(kind-Kachel)+5 else pos=6*dreieck_links+5;
qu=Q_TL_BL;
*;
qu=Q_BL_TL;
*@(0,1);
pos-=1;
qu=Q_TR;
*@(-1,0.5);
qu=Q_BR;
*@(-1,0.5);
};
};
if unten
-> {
if ???1?? -> pos=6*(kind-Kachel)+1 else pos=6*quadrat_unten+1;
qu=Q_TL_BL;
*;
qu=Q_TR_BR;
*;
qu=Q_BL_TL;
*@(0,1);
qu=Q_BR_TR;
*@(0,1);
};
if rechts
-> {
if ??1??? -> pos=6*(kind-Kachel)+2 else pos=6*quadrat_rechts+2;
qu=Q_TR_BR;
*;
qu=Q_TL;
pos+=1;
*@(1,0.5);
if unten
-> {
if ??11?? -> pos=6*(kind-Kachel)+3 else pos=6*dreieck_rechts+3;
qu=Q_TR_BR;
*;
qu=Q_BR_TR;
*@(0,1);
pos+=1;
qu=Q_TL;
*@(1,0.5);
qu=Q_BL;
*@(1,0.5);
};
};
};
>>
}
}
|