Pufferfish - TypeDefinition/NautiBuoy GitHub Wiki
Pufflefish behavior:
- Will swim in one direction, when it hits a wall it'll swim in the opposite direction
- When it is about to fire, it'll visibly puff up
- It can fire spikes in numerous directions. This includes the possibility of firing in all 4 directions.
- Throughout all the states, the pufflefish does not stop swimming.
States:
- Idle state
- Puff up (prepares to shoot)
- Attack
- Puff down (visibly deflates)
- Idle -> (after a short amount of time) -> Puff up -> Attack -> Puff down -> Idle