Create the enemy with pathfinding AI #11
Labels
No labels
bug
design
feature
high priority
legal
low priority
medium priority
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charlie/AUTOTANK#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For our game, the enemy will need to be able to have a set of actions such as attacking and walking. The enemy will switch between these actions depending on its current state. Considering the time remaining and the scope of our project, we'll first be sticking to the primary function of making a cube that can move using a pathfinding AI. It will need to be able to walk around walls and, most importantly, not into anything.
The enemy does not need to have at attack state. The head will swivel about to face the player and attack them on sight. It should, however, have a rest state, where it doesn't move at all until we toggle it off. When walking, it must navigate around obstacles and walls while moving at a constant speed.
I have not yet properly described the exact process that the enemy must follow. Here it is below:
We have successfully added the pathfinding AI! The enemy also fires its guns when in line of sight of the player, but it currently has no effect on them.