FakhriF / elephant-project

1 stars 0 forks source link

Movement Issues #15

Closed AhmadND00 closed 10 months ago

AhmadND00 commented 12 months 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 11 months 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 11 months 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)