This commit is contained in:
parent
895fbfd27b
commit
dedfdcf295
7 changed files with 114 additions and 6 deletions
|
@ -54,7 +54,7 @@ class CLayerCollision *CNpc::m_layerCollision;
|
|||
|
||||
void CNpc::init()
|
||||
{
|
||||
m_type = NPC_SMALL_JELLYFISH_1;
|
||||
m_type = NPC_FISH_FOLK;
|
||||
|
||||
m_heading = m_fireHeading = 0;
|
||||
m_movementTimer = 0;
|
||||
|
@ -231,13 +231,13 @@ void CNpc::init()
|
|||
|
||||
DVECTOR newPos;
|
||||
|
||||
newPos.vx = 100;
|
||||
newPos.vy = 100;
|
||||
newPos.vx = 200;
|
||||
newPos.vy = 400;
|
||||
|
||||
m_npcPath.addWaypoint( newPos );
|
||||
|
||||
newPos.vx = 500;
|
||||
newPos.vy = 100;
|
||||
newPos.vy = 400;
|
||||
|
||||
m_npcPath.addWaypoint( newPos );
|
||||
|
||||
|
@ -721,6 +721,13 @@ void CNpc::processMovement(int _frames)
|
|||
break;
|
||||
}
|
||||
|
||||
case NPC_MOVEMENT_FIXED_PATH_WALK:
|
||||
{
|
||||
processGenericFixedPathWalk( _frames, &moveX, &moveY );
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case NPC_MOVEMENT_MOTHER_JELLYFISH:
|
||||
{
|
||||
processMotherJellyfishMovement( _frames );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue