File: levelfile.doc

package info (click to toggle)
blockade 20041028-9
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k, lenny
  • size: 500 kB
  • ctags: 804
  • sloc: ansic: 7,485; sh: 177; makefile: 86
file content (56 lines) | stat: -rw-r--r-- 1,051 bytes parent folder | download
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
[Copyright status: This file is in the public domain.]

level file format:

(except as noted, whitespace may appear anywhere).

level-file	:	nothing
		|	level level-file
		;

level		:	level-name level-contents
		;

level-name	:	name-length nonblank-char name-string
		;
	name-length is a number in decimal, containing no whitespace
	nonblank-char is any non-whitespace, non-digit character
	the name-string is the first name-length characters after,
	  but not including, the nonblank-char

level-contents	:	BOARD_Y "row"s
		;

row		:	BOARD_X "cell"s
		;

cell		:
	one of the following character pairs, whitespace not allowed
	  within the pair, permitted but not required between pairs
	__	blank
	QB	blue square
	QY	yellow square
	RB	blue ring
	RY	yellow ring
	PB	blue plus
	PY	yellow plus
	DB	blue diamond
	DY	yellow diamond
	CB	blue colorizer
	CY	yellow colorizer
	CF	flip colorizer
	WL	(immovable) wall
	MW	movable wall
	TL	teleporter
	MU	mutator
	PL	player
	SA	\
	SB	 |
	SC	 |
	SD	 |
	SE	  \ various
	SF	  / starfields
	SG	 |
	SH	 |
	SI	 |
	SJ	/