[Updated] Enemies now track player movement, and the gun rotates appropriately

This commit is contained in:
Ninjaws
2024-12-18 21:57:36 +01:00
parent d740e1a167
commit c0bfe9bd13
8 changed files with 165 additions and 18 deletions
+1
View File
@@ -82,6 +82,7 @@ private:
float shotsPerSecond = 8.0f;
double lastShot;
bool playerSpotted = false;
float aimSpeed = 2.0f; // How quickly the enemy can angle its gun to match the player (and to return to default)
void walk();
void checkForCollision();