File: mfs.ld

package info (click to toggle)
cuyo 2.1.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,752 kB
  • sloc: cpp: 12,451; ml: 6,341; sh: 1,228; pascal: 754; yacc: 558; makefile: 261; lex: 244; perl: 204; sed: 5
file content (165 lines) | stat: -rw-r--r-- 3,284 bytes parent folder | download | duplicates (2)
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
162
163
164
165
#
#   Copyright 2009 by Konrad Voelkel
#   Modified 2011 by Mark Weyer
#   Maintenance modifications 2010,2011,2014 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:
#   kmBier.xpm[.gz], kmHetzstapel.xpm[.gz], kmMuell.xpm[.gz], kmPizza.xpm[.gz],
#   kmSofa.xpm[.gz], kmTafelgrund.xpm[.gz], kmTasse.xpm[.gz]
#


mfs={
  name="mfs"
  author="Konrad"
  numexplode=5
  chaingrass=0
  
  pics=pizza,bier,sofa
  bgcolor=29,48,53
  bgpic=kmTafelgrund.xpm
  topcolor=0,0,0
  toptime=50
  toppic=kmHetzstapel.xpm
  topoverlap=0
  startpic=muell
  startdist="A.........",
            "A....A....",
            "AA...AA..A","-*%&"
  greypic=tasse
  description="Who cleans the room?"

<<
# standard fr sofas:
schemahoriz={
  switch {
    ??0???0? -> A;
    ??1???0? -> B;
    ??1???1? -> C;
    ??0???1? -> D;
  };
  *
};

# wenn sofas mit verbindungsstreben gewnscht sind:
schemasofaspezial={
  switch {
    0?0???0? -> A;
    0?1???0? -> B;
    0?1???1? -> C;
    0?0???1? -> D;
    1?0?1?0? -> E;
    1?1?1?0? -> F;
    1?1?1?1? -> G;
    1?0?1?1? -> H;
    1?0?0?0? -> I;
    1?1?0?0? -> J;
    1?1?0?1? -> K;
    1?0?0?1? -> L;
  };
  *
};

# standard fr tassen:
schemavertx={ 
  switch {
    0???0??? -> A;
    0???1??? -> E;
    1???1??? -> I;
    1???0??? -> M;
  };
  pos += version;
  *
};
>>

  tasse={
    pics=kmTasse.xpm
    numexplode=4
    neighbours=<neighbours_vertical>
<<
  tasse.init = {if rnd(5)==0 -> version = rnd(4) else version = 0;};
  default behaviour = calculate_size+explodes_on_size+explodes_on_explosion : reapply;
  tasse=schemavertx;
>>
}

  pizza={
# still not working properly:
#  neighbours already explode if they are not merged!
#  that makes the level much easier.
    pics=kmPizza.xpm
    numexplode=7
<<
  pizza.init = {weight = 1;};
  default inhibit = DIR_L + DIR_R + DIR_U + DIR_D : reapply;
  pizza={
    if kind@(0,-1)==pizza && weight<4 && weight@(0,-1)>0 -> {
      weight += 1;
      weight@(0,-1) -= 1;
    } else {
      # explosiv werden:
      inhibit = DIR_UL + DIR_UR + DIR_DR + DIR_DL;
    };
    if falling -> {A*;}
    else {
      pos=weight;
      if weight==0 -> kind=nothing
      else *;
    }
  };
>>
}

  sofa={
    pics=kmSofa.xpm
    neighbours=<neighbours_horizontal>
<<
  sofa=schemahoriz;
>>
}

  bier={
    pics=kmBier.xpm
<<
  bier=*;
>>
}

  muell={
    pics=kmMuell.xpm
<<
  muell=*;
>>
}

  info={
    pics=infoicons.xpm
<<
  info={
    if version==0 -> A
    else {
      E,E,E,E,E,E,E,E,E,
      M,M,M,M,M,M,M,M,M,
      N,N,N,N,N,N,N,N,N
    };
    *
  };
>>
  }

}