diff --git a/src/Unuk/Player.cpp b/src/Unuk/Player.cpp index fbc9b3b..fdf774b 100644 --- a/src/Unuk/Player.cpp +++ b/src/Unuk/Player.cpp @@ -8,7 +8,7 @@ Player::Player(Map *mapArg) : Character(mapArg) { } Player::~Player(void) { - +\ } void Player::HandleInput(void) { diff --git a/src/libUnuk/NPC.cpp b/src/libUnuk/NPC.cpp index 23f6ee0..328f32e 100644 --- a/src/libUnuk/NPC.cpp +++ b/src/libUnuk/NPC.cpp @@ -14,6 +14,11 @@ NPC::~NPC(void) { void NPC::Update(void) { Move(); + + if(xVel > 0) m_directionFacing = FACING_RIGHT; + else if(xVel < 0) m_directionFacing = FACING_LEFT; + else if(yVel > 0) m_directionFacing = FACING_DOWN; + else if(yVel < 0) m_directionFacing = FACING_UP; } void NPC::Move(void) {