FakhriF / elephant-project

1 stars 0 forks source link

Movement Issues #15

Closed AhmadND00 closed 11 months ago

AhmadND00 commented 1 year ago

Current implementation is at calculate_enemy_target is:

while is_occupied(nearest_target): nearest_target.x += 1 # Avoid moving to player cell

it only check if target cell is occupied by character unit

raflymg02 commented 1 year ago

1) Player characters can move to the same cell as the enemy. image

2) Enemy can move to the same cells. image

3) Player character can move during enemy's turn. image

AhmadND00 commented 1 year ago

https://github.com/FakhriF/elephant-project/issues/15#issuecomment-1811705845 partially fixed in https://github.com/FakhriF/elephant-project/pull/30#issue-2013808549 (no 1 and 3 problem)