0608e0544d56f79d9c8c2f23a9362671f9fabb47
[supertux.git] / src / constants.hpp
1 //  $Id: world.hpp 4063 2006-07-21 21:05:23Z anmaster $
2 //
3 //  SuperTux
4 //  Copyright (C) 2009 Mathnerd314
5 //
6 //  This program is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU General Public License
8 //  as published by the Free Software Foundation; either version 2
9 //  of the License, or (at your option) any later version.
10 //
11 //  This program is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //  GNU General Public License for more details.
15 //
16 //  You should have received a copy of the GNU General Public License
17 //  along with this program; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20 #ifndef SUPERTUX_CONSTANTS_HPP
21 #define SUPERTUX_CONSTANTS_HPP
22
23 //Useful constants
24
25 // a small value... be careful as CD is very sensitive to it
26 static const float DELTA = .0005f;
27
28 // the engine will be run with a logical framerate of 64fps.
29 // We chose 64fps here because it is a power of 2, so 1/64 gives an "even"
30 // binary fraction...
31 static const float LOGICAL_FPS = 64.0;
32
33 // SHIFT_DELTA is used for sliding over 1-tile gaps and collision detection
34 static const float SHIFT_DELTA = 7.0f;
35
36 #endif