Manhole (Cover)
How to Play
W --> move top left
S --> move bottom left
O --> move top right
K --> move bottom right
Technical Details
Cover Details
The pedestrians are primarily controlled by an animator. There are 6 animation states: walking on the bottom, walking on the top, and the 4 fallen states. The animator starts in the bottom walking position and automatically switches to the top walking position once it plays through one iteration; same for the top to the bottom. During those walking states, there are several event function calls. These functions open a check for 1/2 second to see if the player character is in the correct state. If it is, then the pedestrian does nothing and continues the animation like normal. If the player character isn't there by the end of the check, then the pedestrian falls into the hole by an animation trigger into whichever hole they are over at the time. Each of the fallen states also have an event function to destroy the pedestrian game object after a second. When the player gets 3 misses, all pedestrian animation's speed is set to zero.
Additional Details
Sprites from The Spriters Resource here.
Published | 10 hours ago |
Status | Released |
Platforms | HTML5 |
Author | romeosdaydream |
Made with | Unity |
Leave a comment
Log in with itch.io to leave a comment.