Teams And Custom Collision Behaviors
In this chapter, you'll command a pirate crew in Cove Brawl, where there are more than two sides. The big idea is teams: every actor belongs to one, a table says who hurts whom, and custom collision code lets armor, bribes, and friendly fire all follow from data.
I'm still writing this chapter, step by step. In the meantime, you can play the finished game, and read the code and the assets that make it, so that you can run it and change it yourself.
Play the Game
The code that makes it:
The assets, which go in an assets folder next to the game: