Zombie is a zombie TPS game made with Unity, including basic TPS features like:
-
Character movement and attack
-
Zombie AI(State machine)
-
Character Animation(IK)
-
Weapon switch
Devlog
Enemy AI
I wrote a state machine to control enemy behavior and created 4 different specific states: idle, follow, attack, and dead. The state machine works with events to implement simple zombie AI. I create and initialize the zombie’s state when it’s spawned, then add all the states to a dictionary and use it in the state machine to control zombies’ states.
Animation
I added different animation layers to control the animation of different body parts and blended them based on weight. I have tried 2 ways to implement character IK: animation rigging plugin and code control. The plugin is more convenient and easier to use but sometimes it caused strange bugs. In this case, because I needed to implement weapon switching which requires some code to control the character’s hand IK so I chose to code for the purpose of controlling it.
Project Gallery




