digocorbellini / EGaDS-Open-Project

EGaDS! 2022 Open Project
Apache License 2.0
3 stars 12 forks source link

Tired Employee Enemy #11

Closed jamesdrayton closed 2 years ago

jamesdrayton commented 2 years ago

This is the end result of the Trello task "Tired Employee Enemy" (https://trello.com/c/q986X7BT)

It takes a duplicate of the player and replaces the PlayerController script with the EmployeeController script. The tired employee enemy has modifiable moveSpeed and damage by default, as well as an array of empty waypoint objects which it will iterate through to create a path. It will always begin at the first waypoint in the array before moving on to the next, and if Looping is set to true then it will also return to the first waypoint upon reaching the last. If false, it will stop moving at the last waypoint.

Besides leaving room to apply a sprite and animations to the employee, there is also room for the employee to do something after reaching each waypoint, and to apply different effects upon colliding with other objects.

jamesdrayton commented 2 years ago

All done on the changes