K-Mistele / seeker-of-the-sword

ascii-character adventure code written into console via python
Other
5 stars 0 forks source link

Strange Mob Tracking Behavior #18

Closed K-Mistele closed 6 years ago

K-Mistele commented 6 years ago

Some strange mob tracking behavior, especially near player. Possibly a reversed x-direction in the AI, will look into farther.

K-Mistele commented 6 years ago

Problems:

K-Mistele commented 6 years ago

Fixed pursue bug, now working on collisions.

K-Mistele commented 6 years ago

Found a fix thanks to @Michael-N, will be working on this soon.

K-Mistele commented 6 years ago

Player can no longer move on top of monsters

K-Mistele commented 6 years ago

Working on the last bug soon!

K-Mistele commented 6 years ago

@Michael-N switch to branch mob-AI-gameplay-combat. Code for mob chasing etc. is working, but the mobs aren't moving. One of the conditionals in monster.chase() must be evaluating false. Any thoughts? I've checked all the functions and can't find an answer.

K-Mistele commented 6 years ago

Ha. Squashed it. It was checking to see if any mobs shared the x coordinate OR the y coordinate of where it was trying to move, and it was checking all the mobs in world.monsters. It was essentially colliding with itself. @Michael-N