DemoProductions / shmup

3 stars 2 forks source link

implement "teams" for damage #35

Closed flip40 closed 8 years ago

flip40 commented 8 years ago

feel free to edit that title for better phrasing

idea is that you cannot hurt yourself (or other players if coop is a thing), and enemies cannot hurt each other.

Maybe just create a "team" script that handles an enum for team selection? Then bullet can check this against its own team (parent can assign the team for its initialized bullet).

something like that.