Insane96 / E.T.Reloaded

E.T. Reloaded
1 stars 6 forks source link

(HD) Enemies classes #5

Open luxkun opened 8 years ago

luxkun commented 8 years ago

We need to create a generic Enemy class that inherit Character. This class should have a basilar AI that follows the player when he's in range and dodge pits and other obstacles. This class should also handle Player's capture and movement with attached player.

We also need to create different classes that inherit Enemy, such as FbiAgent and Scientist (what else?). These should differ from Enemy only for few things, such as the position where the player is taken and any malus they give to the player.

chirone0 commented 8 years ago

Ok, we have Elliott too, he has the following behavior: Run to E.T. Gives him an extra life in exchange of candies or Resurrects E.T. if he's dead.

luxkun commented 8 years ago

So we need Elliott that inherit a "NpcCharacter" class. Instead FbiAgent and Scientist should inherit an Enemy class that inherit NpcCharacter.

In NpcCharacter class we can put AI to follow the player and in Enemy class we can put the method to "drag" the player to a determinated position, looks good?

chirone0 commented 8 years ago

correct!