1# 2# Copyright 2002,2004-2006,2014 by Mark Weyer 3# Modified 2010 by Mark Weyer 4# Maintenance modifications 2006,2008,2011 by the cuyo developers 5# 6# This program is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 2 of the License, or 9# (at your option) any later version. 10# 11# This program is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, write to the Free Software 18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19# 20 21Labyrinth={ 22 name="Maze" 23 description="Collect all treasures. Finding the exit is optional." 24 author="Mark Weyer" 25 numexplode=4 26 chaingrass=0 27 sorten = 6 28 sorten[easy] = 4 29 pics=Sorte * <sorten> 30 bgcolor=255,255,255 31 toppic=mlTop.xpm 32 topoverlap=0 33 topcolor=255,255,255 34 toptime[1]=80 35 toptime[2]=200 36 startpic=Gras 37 startdist[1]= 38 "**********","**********","**********","**********","**********","yz%&" 39 startdist[2]="**********","**********","**********","**********","yz%&" 40 startdist[1,easy]="**********","**********","**********","yz%&" 41 startdist[2,easy]="**********","**********","yz%&" 42 emptypic=mlHinter.xpm 43 greypic=Grau 44 nogreyprob=<2*sorten> 45 46 << 47 Gras.init = { 48 if kind@(0,1)!=outside && 2:3 -> switch { 49 2:3 -> kind@(0,0)=Sorte+rnd(sorten); 50 -> kind@(0,0)=Grau; 51 }; 52 }; 53 54 Sorte = {file=kind-Sorte; schema16;}; 55 56 Grau = schema16; 57 58 Gras = schema16; 59 60 mlHinter = switch { 61 1?1?1?1? -> ; 62 -> schema16; 63 }; 64 >> 65 66 Sorte = { 67 pics = mlSorte2.xpm, mlSorte4.xpm, mlSorte5.xpm, 68 mlSorte6.xpm, mlSorte1.xpm, mlSorte3.xpm 69 greyprob = 4 70 } 71 Gras = { 72 pics = mlGras.xpm 73 distkey = "z" 74 } 75 Grau = { 76 pics = mlGrau.xpm 77 distkey = "y" 78 greyprob = <3*sorten> 79 } 80} 81 82