1 // $Id: world.hpp 4063 2006-07-21 21:05:23Z anmaster $
4 // Copyright (C) 2009 Mathnerd314
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.
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.
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.
20 #ifndef SUPERTUX_CONSTANTS_HPP
21 #define SUPERTUX_CONSTANTS_HPP
25 // a small value... be careful as CD is very sensitive to it
26 static const float DELTA = .0005f;
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"
31 static const float LOGICAL_FPS = 64.0;
33 // SHIFT_DELTA is used for sliding over 1-tile gaps and collision detection
34 static const float SHIFT_DELTA = 7.0f;