[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3377 - trunk/pingus/src/actions
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3377 - trunk/pingus/src/actions |
Date: |
Mon, 29 Oct 2007 05:28:14 +0100 |
Author: grumbel
Date: 2007-10-29 05:28:09 +0100 (Mon, 29 Oct 2007)
New Revision: 3377
Modified:
trunk/pingus/src/actions/faller.cpp
Log:
- reduce velocity on head bounce to simulate some friction
Modified: trunk/pingus/src/actions/faller.cpp
===================================================================
--- trunk/pingus/src/actions/faller.cpp 2007-10-29 04:23:03 UTC (rev 3376)
+++ trunk/pingus/src/actions/faller.cpp 2007-10-29 04:28:09 UTC (rev 3377)
@@ -125,9 +125,9 @@
// If the Pingu collided into something while moving up...
else // if (velocity.y < 0.0f)
{
- std::cout << "Head bounce" << std::endl;
// Don't make the Pingu go up any further.
velocity.y = 0;
+ velocity.x = (velocity.x / 3.0f);
pingu->set_velocity(velocity);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3377 - trunk/pingus/src/actions,
grumbel at BerliOS <=