AlysCole / fcc

Projects done for the FreeCodeCamp curriculum.
1 stars 0 forks source link

roguelikegame: Implement combat #1

Closed AlysCole closed 5 years ago

AlysCole commented 6 years ago

A combat system should be implemented and triggered whenever a PC and an NPC comes into contact (read: when one goes into the same cell occupied by another).

AlysCole commented 6 years ago

With commit b331c6b3bb41a7fd3f126dc400ace1eb87fd89cf, introduced changes to the movement functions so that each type of NPC has its own function to calculate its path and the way it moves. Now, an NPC may move differently depending on whether the PC is within view or not.

AlysCole commented 5 years ago

Planning on changing the way combat works. As the PC is a sort of 'hunter', the PC must 'capture' most NPCs. Once an NPC is captured, combat begins.

Commit 61f0910 sets this functionality up.

AlysCole commented 5 years ago

Commit 0e013cf solves this issue. Closing.