This implementation is a single bolt as a CCDrawNode. You can create a series of strikes by adding more bolt instances. See the DrawPrimitivesTest for details:
StrikeTime is the amount of time, in seconds, that it takes for the lightning to strike its target. The FadeTime is the amount of time for the strike to fade out.
This PR also include some optimizations to the CCDrawNode to cache a filtered array of primitives so that the hard 65535 primitive limit in XNA doesn't get triggered in CCDrawManager.
This implementation is a single bolt as a CCDrawNode. You can create a series of strikes by adding more bolt instances. See the DrawPrimitivesTest for details:
StrikeTime is the amount of time, in seconds, that it takes for the lightning to strike its target. The FadeTime is the amount of time for the strike to fade out.
This PR also include some optimizations to the CCDrawNode to cache a filtered array of primitives so that the hard 65535 primitive limit in XNA doesn't get triggered in CCDrawManager.