/usr/share/games/cuyo/tetris.ld is in cuyo-data 2.0.0brl1-3build1.
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 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | #
# Copyright 2006 by Bernhard Seckinger
# Maintenance modifications 2002,2003,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:
# btGrey.xpm[.gz], btScore.xpm[.gz], btTetris.xpm[.gz]
#
# Status: (M=Muss, S=Soll, K=Kann, F=Feature, B=Bugs)
#
# Fertig.
#
# FK: Bonus bei Zeile weg
# FK: Feinjustierung
#------------------------------#
# Definition des Tetris-Levels #
#------------------------------#
Tetris =
{
#------------------------------------#
# Allgemeine Beschreibung des Levels #
#------------------------------------#
name = "Tetris"
author = "Berni"
description = "Complete lines will disappear."
pics = Tetris * 7
greypic = Grey
startpic = Score
startdist = "ABCDEFGHIJ" # schreibt: "SCORE:0000"
numexplode = 4
chaingrass = 1
textcolor = 255,0,0
bgcolor = 0,0,0
topcolor = 192,192,192
toptime = 50
randomgreys = 500 # Das muss evtl. noch angepasst werden
randomgreys[1] = 100 # Das muss evtl. noch angepasst werden
<<
var punkte=0;
var exp = 0;
var exp2 = 0;
vielleicht_explodieren = {
if exp && !exp2 => {
exp2=1;
if kind@(1,0) == Grey -> exp@(1,0)=1;
if kind@(-1,0) == Grey -> exp@(-1,0)=1;
if kind@(0,1) == Grey -> exp@(0,1)=1;
if kind@(0,-1) == Grey -> exp@(0,-1)=1;
explode;
punkte@+=1;
};
};
>>
#-----------------------------------------------------#
# Startaufstellung und das Verhalten der "Gras"-Teile #
#-----------------------------------------------------#
Score =
{
pics = btScore.xpm
<<
var local; # Parameter fuer Unterroutine 'setDigit'
setDigit = {
switch
{
local==0 -> K;
local==1 -> L;
local==2 -> M;
local==3 -> N;
local==4 -> O;
local==5 -> P;
local==6 -> Q;
local==7 -> R;
local==8 -> S;
local==9 -> T;
}
};
Score = {
switch {
version==0 -> A;
version==1 -> B;
version==2 -> C;
version==3 -> D;
version==4 -> E;
version==5 -> F;
version==6 -> { local=punkte@ / 1000 % 10;setDigit };
version==7 -> { local=punkte@ / 100 % 10;setDigit };
version==8 -> { local=punkte@ / 10 % 10;setDigit };
version==9 -> { local=punkte@ % 10;setDigit };
};*
};
>>
} # End of Score
#-------------------#
# Die grauen Steine #
#-------------------#
Grey =
{
pics = btGrey.xpm
<<
Grey = {
schema16;
vielleicht_explodieren;
};
>>
}
#-------------------#
# Die Tetris-Steine #
#-------------------#
<<
var sum,local;
# Prueft, ob eine ganze Zeile voll mit Tetris-Teilen ist und laesst diese
# gegebenenfalls verschwinden.
testline = {
switch { loc_x==0 ->
{
sum=0;
switch {kind@(9,0)==0..6 -> sum+=1;};
switch {kind@(8,0)==0..6 -> sum+=1;};
switch {kind@(7,0)==0..6 -> sum+=1;};
switch {kind@(6,0)==0..6 -> sum+=1;};
switch {kind@(5,0)==0..6 -> sum+=1;};
switch {kind@(4,0)==0..6 -> sum+=1;};
switch {kind@(3,0)==0..6 -> sum+=1;};
switch {kind@(2,0)==0..6 -> sum+=1;};
switch {kind@(1,0)==0..6 -> sum+=1;};
switch {kind@(0,0)==0..6 -> sum+=1;};
switch {sum==10 -> {
#kind@(0,0)=Grey;
exp@(0,0)=1;
#kind@(1,0)=Grey;
exp@(1,0)=1;
#kind@(2,0)=Grey;
exp@(2,0)=1;
#kind@(3,0)=Grey;
exp@(3,0)=1;
#kind@(4,0)=Grey;
exp@(4,0)=1;
#kind@(5,0)=Grey;
exp@(5,0)=1;
#kind@(6,0)=Grey;
exp@(6,0)=1;
#kind@(7,0)=Grey;
exp@(7,0)=1;
#kind@(8,0)=Grey;
exp@(8,0)=1;
#kind@(9,0)=Grey;
exp@(9,0)=1;
};};
};};*;
vielleicht_explodieren;
};
>>
Tetris = { pics=btTetris.xpm << Tetris = {pos=kind-Tetris;testline;}; >> }
} # End of Tetris
|