This commit is contained in:
parent
eb5e00a0a7
commit
d4ad696784
1 changed files with 4 additions and 5 deletions
|
@ -28,6 +28,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void CNpcBouncePlatform::postInit()
|
void CNpcBouncePlatform::postInit()
|
||||||
{
|
{
|
||||||
CNpcPlatform::postInit();
|
CNpcPlatform::postInit();
|
||||||
|
@ -44,12 +46,9 @@ void CNpcBouncePlatform::think( int _frames )
|
||||||
{
|
{
|
||||||
CPlayer *player = GameScene.getPlayer();
|
CPlayer *player = GameScene.getPlayer();
|
||||||
|
|
||||||
if ( m_vertVelocity > 20 && m_vertScale < -100 )
|
player->springPlayerUp();
|
||||||
{
|
|
||||||
player->springPlayerUp();
|
|
||||||
}
|
|
||||||
|
|
||||||
s16 vertForce = -30 * _frames;
|
s16 vertForce = -180 * _frames;
|
||||||
|
|
||||||
m_vertVelocity += vertForce;
|
m_vertVelocity += vertForce;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue