File: disco.ld

package info (click to toggle)
cuyo 2.0.0brl1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 15,624 kB
  • sloc: cpp: 11,728; ml: 5,515; sh: 1,179; makefile: 757; yacc: 558; awk: 355; lex: 244; perl: 193
file content (114 lines) | stat: -rw-r--r-- 2,441 bytes parent folder | download | duplicates (3)
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
#
#   Copyright 2006 by Bernhard Seckinger
#   Modified 2011 by Immanuel Halupczok
#   Maintenance modifications 2006,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
#
# The above notices apply to this file and to:
#    bddisco.xpm[.gz]
#

# Status: (M=Muss, S=Soll, K=Kann, F=Feature, B=Bugs)
#
# Fertig.

Disco =
{
  #------------------------------------#
  # Allgemeine Beschreibung des Levels #
  #------------------------------------#

  name     = "Disco"
  author   = "Berni"
  description     = "Get rid of the strobos!"

  pics = All*4

  greypic   = Grey
  startpic  = Start
  startdist = "..**.**...",
	      ".***.****.",
	      "****.*****",
	      "**********"

  numexplode = 6

  bgcolor    = 128,128,128
  topcolor   = 0,0,0
  topoverlap = 0
  toptime    = 5
  textcolor  = 60,60,255

  randomgreys[1] = 25
  randomgreys = 50

  <<
    var flash=-1,mode=0;

    global = {
      {mode=1},{mode=0},{},{};
      switch {
        1:2 => {D,A,A,A,B,A,A,A,B,A,A,A,B,A,C,A};
        1:2 => {D,A,A,A,B,A,A,A,B,A,A,A,B,A,A,A};
        => {D,A,A,A,B,A,A,A,B,A,C,A,B,A,C,A};
      };
      flash=pos;
    };
  >>

  Grey =
  {
    pics = bddisco.xpm
    
    <<
      Grey =
        {
	  G*;
	};
    >>
  }

  Start =
  {
    pics = bddisco.xpm

    <<
      Start =
	{
          if mode@() -> mode=rnd(3);
          if mode & flash@() -> E* else -> F*;
	};
    >>
  }

  All = 
  {
    pics = bddisco.xpm

    <<
      All = 
        {
          if !falling -> {
            if rnd(4) & flash@() || 1:8 -> kind = rnd(4);
            pos=kind-All+8;
            if kind@(-1,1) != nothing -> [qu = Q_TR] *@(-1,1);
            if kind@(-1,0) != nothing -> [qu = Q_BR] *@(-1,0);
          };
	  pos=kind-All;*;
	};
    >>
  }
}