Shake camera on buttjump.
authormathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Tue, 26 Jan 2010 02:42:10 +0000 (02:42 +0000)
committermathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Tue, 26 Jan 2010 02:42:10 +0000 (02:42 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6274 837edb03-e0f3-0310-88ca-d4d4e8b29345

src/object/player.cpp

index 8c830bf..28a607e 100644 (file)
@@ -1145,6 +1145,7 @@ Player::collision_solid(const CollisionHit& hit)
                                       90-40, 90-20,
                                       Vector(280, -260), Vector(0, 300), 3, Color(.4f, .4f, .4f), 3, .8f,
                                       LAYER_OBJECTS+1));
+      Sector::current()->camera->shake(.1f, 0, 5);
     }
 
   } else if(hit.top) {