summaryrefslogtreecommitdiff
path: root/apps/plugins/xrick/data/tiles.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/xrick/data/tiles.h')
-rw-r--r--apps/plugins/xrick/data/tiles.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/apps/plugins/xrick/data/tiles.h b/apps/plugins/xrick/data/tiles.h
new file mode 100644
index 0000000000..35bc07184e
--- /dev/null
+++ b/apps/plugins/xrick/data/tiles.h
@@ -0,0 +1,70 @@
1/*
2 * xrick/data/tiles.h
3 *
4 * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net).
5 * Copyright (C) 2008-2014 Pierluigi Vicinanza.
6 * All rights reserved.
7 *
8 * The use and distribution terms for this software are contained in the file
9 * named README, which can be found in the root of this distribution. By
10 * using this software in any fashion, you are agreeing to be bound by the
11 * terms of this license.
12 *
13 * You must not remove this notice, or any other, from this software.
14 */
15
16/*
17 * NOTES
18 *
19 * A tile consists in one column and 8 rows of 8 U16 (cga encoding, two
20 * bits per pixel). The tl_tiles array contains all tiles, with the
21 * following structure:
22 *
23 * 0x0000 - 0x00FF tiles for main intro
24 * 0x0100 - 0x01FF tiles for map intro
25 * 0x0200 - 0x0327 unused
26 * 0x0328 - 0x0427 game tiles, page 0
27 * 0x0428 - 0x0527 game tiles, page 1
28 * 0x0527 - 0x05FF unused
29 */
30
31#ifndef _TILES_H
32#define _TILES_H
33
34#include "xrick/system/basic_types.h"
35
36#include "xrick/config.h"
37
38#include <stddef.h> /* size_t */
39
40/*
41 * three special tile numbers
42 */
43enum {
44 TILES_BULLET = 0x01,
45 TILES_BOMB = 0x02,
46 TILES_RICK = 0x03
47};
48
49/*
50 * one single tile
51 */
52enum { TILES_NBR_LINES = 0x08 };
53
54#ifdef GFXPC
55typedef U16 tile_t[TILES_NBR_LINES];
56#endif
57#ifdef GFXST
58typedef U32 tile_t[TILES_NBR_LINES];
59#endif
60
61/*
62 * tiles banks (each bank is 0x100 tiles)
63 */
64enum { TILES_NBR_TILES = 0x100 };
65extern size_t tiles_nbr_banks;
66extern tile_t *tiles_data;
67
68#endif /* ndef _TILES_H */
69
70/* eof */