Subversion Repositories Games.Rick Dangerous

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 pmbaty 1
/*
2
 * src/tiles.h
3
 *
4
 * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
5
 *
6
 * The use and distribution terms for this software are contained in the file
7
 * named README, which can be found in the root of this distribution. By
8
 * using this software in any fashion, you are agreeing to be bound by the
9
 * terms of this license.
10
 *
11
 * You must not remove this notice, or any other, from this software.
12
 */
13
 
14
/*
15
 * NOTES
16
 *
17
 * A tile consists in one column and 8 rows of 8 U16 (cga encoding, two
18
 * bits per pixel). The tl_tiles array contains all tiles, with the
19
 * following structure:
20
 *
21
 *   0x0000 - 0x00FF   tiles for main intro
22
 *   0x0100 - 0x01FF   tiles for map intro
23
 *   0x0200 - 0x0327   unused
24
 *   0x0328 - 0x0427   game tiles, page 0
25
 *   0x0428 - 0x0527   game tiles, page 1
26
 *   0x0527 - 0x05FF   unused
27
 */
28
 
29
#ifndef _TILES_H
30
#define _TILES_H
31
 
32
#include "system.h"
33
 
34
#define TILES_NBR_BANKS 3
35
 
36
#define TILES_SIZEOF8 (0x10)
37
#define TILES_SIZEOF16 (0x08)
38
 
39
/*
40
 * three special tile numbers
41
 */
42
#define TILES_BULLET 0x01
43
#define TILES_BOMB 0x02
44
#define TILES_RICK 0x03
45
 
46
/*
47
 * one single tile
48
 */
49
typedef U32 tile_t[0x08];
50
 
51
/*
52
 * tiles banks (each bank is 0x100 tiles)
53
 */
54
extern tile_t tiles_data[TILES_NBR_BANKS][0x100];
55
 
56
#endif