~ubuntu-branches/ubuntu/saucy/cuyo/saucy

« back to all changes in this revision

Viewing changes to data/octopi.ld

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2010-07-19 09:54:44 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100719095444-ecoegzo1vvvdwra9
Tags: 2.~-1.1.brl3-1ubuntu1
* Merge from debian unstable (LP: #607106). Remaining changes:
  - Don't register MimeType=application/x-executable in
    the .desktop file.
  - Remove UTF-8 in the .desktop file
  - 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#   Copyright 2008 by Mark Weyer
 
3
#
 
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.
 
8
#
 
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.
 
13
#
 
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
 
17
#
 
18
 
 
19
 
 
20
Octopi = {
 
21
  name = "Octopi"
 
22
  author = "Mark Weyer"
 
23
  description = "Octopi connect in eight directions. They also remove the anemones that way."
 
24
 
 
25
  sorten = 5
 
26
 
 
27
  pics = octopus*<sorten>
 
28
  greypic = moFisch.xpm
 
29
  startpic = anemone
 
30
  startdist = "AAA.......","AAAAA...AA","AAAAAA.AAA"
 
31
  numexplode = 8
 
32
  neighbours = <neighbours_eight>
 
33
 
 
34
  anemone = {
 
35
    pics = moAnemone.xpm
 
36
 
 
37
    <<
 
38
      anemone.init = {version=rnd(4);};
 
39
 
 
40
      anemone = {pos=version; *;};
 
41
    >>
 
42
  }
 
43
 
 
44
  octopus = {
 
45
    pics = moOctopus1.xpm, moOctopus2.xpm, moOctopus3.xpm,
 
46
           moOctopus4.xpm, moOctopus5.xpm
 
47
 
 
48
    <<
 
49
      octopus = {
 
50
        file = kind-octopus;
 
51
 
 
52
        qu = Q_TL;
 
53
        switch {
 
54
          0?????00 -> C;
 
55
          0?????01 -> H;
 
56
          0?????10 -> I;
 
57
          0?????11 -> D;
 
58
          1?????00 -> A;
 
59
          1?????01 -> F;
 
60
          1?????10 -> G;
 
61
          1?????11 -> B;
 
62
        };
 
63
        *;
 
64
        if kind==kind@(-1,1) -> E*@(0,1);
 
65
 
 
66
        qu = Q_TR;
 
67
        switch {
 
68
          000????? -> I;
 
69
          001????? -> C;
 
70
          010????? -> D;
 
71
          011????? -> H;
 
72
          100????? -> G;
 
73
          101????? -> A;
 
74
          110????? -> B;
 
75
          111????? -> F;
 
76
        };
 
77
        *;
 
78
        if kind==kind@(-1,-1) -> E@(-1,0)*;
 
79
 
 
80
        qu = Q_BL;
 
81
        switch {
 
82
          ????000? -> A;
 
83
          ????001? -> G;
 
84
          ????010? -> F;
 
85
          ????011? -> B;
 
86
          ????100? -> C;
 
87
          ????101? -> I;
 
88
          ????110? -> H;
 
89
          ????111? -> D;
 
90
        };
 
91
        *;
 
92
        if kind==kind@(1,1) -> E@(1,0)*;
 
93
 
 
94
        qu = Q_BR;
 
95
        switch {
 
96
          ??000??? -> G;
 
97
          ??001??? -> I;
 
98
          ??010??? -> B;
 
99
          ??011??? -> D;
 
100
          ??100??? -> A;
 
101
          ??101??? -> C;
 
102
          ??110??? -> F;
 
103
          ??111??? -> H;
 
104
        };
 
105
        *;
 
106
        if kind==kind@(1,-1) -> E*@(0,-1);
 
107
      };
 
108
    >>
 
109
  }
 
110
 
 
111
}
 
112