File: blockade-pix.h

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 (58 lines) | stat: -rw-r--r-- 1,681 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
57
58
/*
 * Copyright status: this file is in the public domain.
 *
 * Beware.  These values are known elsewhere.  Specifically,
 *
 * - editicon.c has ICON_W/ICON_H/ICON_SW/ICON_SH, which control the
 *  sizes of the icons it generates; they must match the PIC_W, PIC_H,
 *  PIC_SH, and PIC_SW defines here.
 *
 * - The number of colours and pictures and the order of the pictures
 *  are not known in code elsewhere, but they are "known" in that the
 *  icons contained in blockade-pix.ei must match them; careless use of
 *  editicon on blockade-pix.ei, without updating this file to match,
 *  will break things.
 *
 * - icontopix has the _H and _SH values wired into its awk code.
 */
#define B_NCOLOURS 21
#define B_NPIX 27
#define PIC_H 32
#define PIC_W 32
#define PIC_SH 8
#define PIC_SW 8

#define PIC_NSTARS 10
#define PIC_BLANK 0
#define PIC_Q_B 1
#define PIC_Q_Y 2
#define PIC_R_B 3
#define PIC_R_Y 4
#define PIC_P_B 5
#define PIC_P_Y 6
#define PIC_D_B 7
#define PIC_D_Y 8
#define PIC_COLOUR_B 9
#define PIC_COLOUR_Y 10
#define PIC_COLOUR_FLIP 11
#define PIC_WALL 12
#define PIC_MWALL 13
#define PIC_TELEPORT 14
#define PIC_MUTATE 15
#define PIC_PLAYER 16
#define PIC_STARS_A 17
#define PIC_STARS_B 18
#define PIC_STARS_C 19
#define PIC_STARS_D 20
#define PIC_STARS_E 21
#define PIC_STARS_F 22
#define PIC_STARS_G 23
#define PIC_STARS_H 24
#define PIC_STARS_I 25
#define PIC_STARS_J 26

extern unsigned short int b_p_colours[B_NCOLOURS][3];
extern unsigned char b_p_pix_colour[B_NPIX][PIC_H][PIC_W];
extern unsigned char b_p_pix_bw[B_NPIX][PIC_H][PIC_W];
extern unsigned char b_sp_pix_colour[B_NPIX][PIC_SH][PIC_SW];
extern unsigned char b_sp_pix_bw[B_NPIX][PIC_SH][PIC_SW];