This commit is contained in:
parent
851263ff5c
commit
056511ac63
6 changed files with 118 additions and 44 deletions
|
@ -117,7 +117,7 @@ void CNpcEnemy::processCloseHermitCrabAttack( int _frames )
|
|||
|
||||
s32 moveX = 0, moveY = 0;
|
||||
s32 groundHeight;
|
||||
s32 fallSpeed = 2;
|
||||
s32 fallSpeed = 3;
|
||||
s8 yMovement = fallSpeed * _frames;
|
||||
|
||||
moveX = 6 * _frames;
|
||||
|
@ -154,6 +154,12 @@ void CNpcEnemy::processCloseHermitCrabAttack( int _frames )
|
|||
|
||||
moveY = groundHeight;
|
||||
}
|
||||
else
|
||||
{
|
||||
// fall
|
||||
|
||||
moveY = yMovement;
|
||||
}
|
||||
|
||||
Pos.vx = newX;
|
||||
Pos.vy += moveY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue