fix tux jumping always full height
[supertux.git] / src / defines.h
1 //  $Id$
2 // 
3 //  SuperTux
4 //  Copyright (C) 2000 Bill Kendrick <bill@newbreedsoftware.com>
5 //  Copyright (C) 2004 Tobias Glaesser <tobi.web@gmx.de>
6 //
7 //  This program is free software; you can redistribute it and/or
8 //  modify it under the terms of the GNU General Public License
9 //  as published by the Free Software Foundation; either version 2
10 //  of the License, or (at your option) any later version.
11 //
12 //  This program is distributed in the hope that it will be useful,
13 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 //  GNU General Public License for more details.
16 // 
17 //  You should have received a copy of the GNU General Public License
18 //  along with this program; if not, write to the Free Software
19 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 //  02111-1307, USA.
21 #ifndef SUPERTUX_DEFINES_H
22 #define SUPERTUX_DEFINES_H
23
24 #include <config.h>
25
26 enum Direction { LEFT = 0, RIGHT = 1 };
27
28 /* Direction (keyboard/joystick) states: */
29
30 #define UP 0
31 #define DOWN 1
32
33 /* Dying types: */
34
35 /* ---- NO 0 */
36 enum DyingType {
37   DYING_NOT = 0,
38   DYING_SQUISHED = 1,
39   DYING_FALLING = 2
40 };
41
42 /* Speed constraints: */
43 #define MAX_WALK_XM 230
44 #define MAX_RUN_XM 320
45 #define MAX_LIVES 99
46
47 #define WALK_SPEED 100
48
49 /* gameplay related defines */
50
51 #define START_LIVES 4
52
53 #define MAX_FIRE_BULLETS 2
54 #define MAX_ICE_BULLETS  1
55 #define FROZEN_TIME 3.0
56
57 #define WALK_ACCELERATION_X 300
58 #define RUN_ACCELERATION_X 400
59
60 #define SKID_XM 200
61 #define SKID_TIME .3
62
63 #endif /*SUPERTUX_DEFINES_H*/
64