Project

General

Profile

Revision 340

more changes in ent.h, ent.c

View differences:

proj_macros.h
1 1
#ifndef PROJ_MACROS_H_INCLUDED
2 2
#define PROJ_MACROS_H_INCLUDED
3 3

  
4
/**
5
 * @defgroup proj_macros proj_macros
6
 * @brief Project macros.
7
 *
8
 * @{
9
 */
10

  
4 11
// Movement Directions
5
#define UP      -1  /** @brief Moving to the top side of screen */
6
#define DOWN    1   /** @brief Moving to the bottom side of screen */
7
#define LEFT    -1  /** @brief Moving to the left side of screen */
8
#define RIGHT   1   /** @brief Moving to the right side of screen */
9
#define REST    0   /** @brief Not moving */
12
/** @brief Moving to the top side of screen */
13
#define UP      -1
14
/** @brief Moving to the bottom side of screen */
15
#define DOWN    1
16
/** @brief Moving to the left side of screen */
17
#define LEFT    -1
18
/** @brief Moving to the right side of screen */
19
#define RIGHT   1
20
/** @brief Not moving */
21
#define REST    0
10 22

  
11 23
// Movement Constants
12
#define SHOOTER_SPEED   5   /** @brief Shooter speed */
13
#define BULLET_SPEED    8   /** @brief Bullet speet */
24
/** @brief Shooter speed */
25
#define SHOOTER_SPEED   5
26
/** @brief Bullet speet */
27
#define BULLET_SPEED    8
14 28

  
15 29
// Refresh Rate
16
#define REFRESH_RATE    60      /** @brief Screen refresh rate */
30
/** @brief Screen refresh rate */
31
#define REFRESH_RATE    60
17 32

  
18 33
//Graphics mode
19
#define GRAPH_MODE      DIRECT_1024_768_888 /** @brief Graphic mode used */
20
#define MIN_SCALE       0.2                  /** @brief Minimum zoom */
21
#define DEFAULT_SCALE   0.5                  /** @brief Default zoom */
22
#define MAX_SCALE       10.0                 /** @brief Maximum zoom */
34
/** @brief Graphic mode used */
35
#define GRAPH_MODE      DIRECT_1024_768_888
36
/** @brief Minimum zoom */
37
#define MIN_SCALE       0.2
38
/** @brief Default zoom */
39
#define DEFAULT_SCALE   0.5
40
/** @brief Maximum zoom */
41
#define MAX_SCALE       10.0
23 42

  
24 43
// Colors
44
/** @brief Text color */
25 45
#define TEXT_COLOR              0xFFFFFF
46
/** @brief Highlight color */
26 47
#define HIGHLIGHT_COLOR         0x404040
48
/** @brief Delimiter color */
27 49
#define DELIMITER_COLOR         0x404040
28 50

  
51
/** @brief Melee attacks range */
29 52
#define MELEE_RANGE    80
53
/** @brief Melee attack damage (for zombies). */
30 54
#define MELEE_DAMAGE   1
31

  
55
/** @brief Zombie speed */
32 56
#define ZOMBIE_SPEED    1.0
33 57

  
58
/**
59
 * @}
60
 */
61

  
34 62
#endif /* end of include guard: PROJ_MACROS_H_INCLUDED */

Also available in: Unified diff