File: const.h

package info (click to toggle)
tenmado 0.10-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,208 kB
  • sloc: ansic: 22,906; sh: 1,072; yacc: 321; makefile: 300; lex: 170
file content (37 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (5)
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
/* $Id: const.h,v 1.26 2012/01/31 04:17:07 oohara Exp $ */

/* we spell "tenmado" instead of "tenm" here because these constants are
 * not portable (that is, not intended to be used in other programs)
 */
#ifndef __TENMADO_CONST_H__
#define __TENMADO_CONST_H__

#define COPYRIGHT_STRING "Copyright (C) 2002, 2012 Oohara Yuuma"

#define WINDOW_WIDTH 480
#define WINDOW_HEIGHT 640

/* attribute
 * these values must be one of 2^n
 */
#define ATTR_PLAYER 1
#define ATTR_PLAYER_SHOT 2
#define ATTR_ENEMY 4
#define ATTR_ENEMY_SHOT 8
/* "weak" enemy gets hit by it */
#define ATTR_OBSTACLE 16
/* normal enemy shot cannot go through it */
#define ATTR_OPAQUE 32

/* color */
#define COLOR_BLUE 0
#define COLOR_PURPLE 1
#define COLOR_RED 2
#define COLOR_GREEN 3

/* scheduler return value */
#define SCHEDULER_SUCCESS 0
#define SCHEDULER_ERROR 1
#define SCHEDULER_NEXT_STAGE 2

#endif /* __TENMADO_CONST_H__ */