summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2010-09-29 19:19:11 -0500
committerKamil Kaminski <kamilkss@gmail.com>2010-09-29 19:19:11 -0500
commit9fd4e3e16d1202e264f916ea485f881ce7f23c52 (patch)
treee6608f8d35e92787cb0031e847a86874830f13f7
parent2d7b2bb141d20270bcdb19df543c294138164351 (diff)
downloadGLPyramid-9fd4e3e16d1202e264f916ea485f881ce7f23c52.tar.gz
GLPyramid-9fd4e3e16d1202e264f916ea485f881ce7f23c52.tar.bz2
GLPyramid-9fd4e3e16d1202e264f916ea485f881ce7f23c52.zip
pyramid: slow down the rotations
-rw-r--r--sdl/pyramid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sdl/pyramid.c b/sdl/pyramid.c
index c3301e8..49cc4a9 100644
--- a/sdl/pyramid.c
+++ b/sdl/pyramid.c
@@ -102,13 +102,13 @@ static void keys(SDL_keysym *keysym, unsigned int *keys_held, int flag)
else
{
if (keys_held[SDLK_w])
- xRot -= 5.0f;
+ xRot -= 1.0f;
if (keys_held[SDLK_s])
- xRot += 5.0f;
+ xRot += 1.0f;
if (keys_held[SDLK_a])
- yRot -= 5.0f;
+ yRot -= 1.0f;
if (keys_held[SDLK_d])
- yRot += 5.0f;
+ yRot += 1.0f;
}
xRot = (GLfloat) ((const int) xRot % 360);