!!WARNING!! New library version
NOT backward compatible!!
New features:
- Primitives:
- Normal direction (perpendicular to the Front Direction)
- Sprite support
- Sprite Support:
- SetTextureSpriteSheet (vs. SetTexture)
- SetTextureSpriteAnimationFrames
- UseSpriteSheet (instead of use texture)
- UseSpriteSheetAnimation (sequence through the set frames)
- Particle Support
- Particle: one particle
- ParticleEmitter: capable of emitting one or many particles
- ParticleEmitter.ExplodeEmitter and TailEmitter: explodes and emits
- Emitter can be attached to a primitive (follow the primitive)
Examples:
- SpriteSheet Demo:
Shows the normal vector and working with sprite sheet
- Rotating circle/square shows each primitive now has a front and normal
vectors
- SpriteSheet: a textuer with many images
- Button-A: to see SpriteSheet vs Texture
- Can set both for a primitive
- UseSpriteSheet determines if one frame or entire
texture.
- Button-B: to show useSpriteSheetAnimation (to stop the animation)
- Left-Thumb stick to rotate hero.
- Drawing sprite sheet is a lot of work!! In this case,
- Particle
demo:
integrated particle system support ...
- Button-A: explosion particle emitter
- PrimitiveParticle: supports additive blending!
- ParticleEmitters can be attached to primitives
- Two predefined particle types: Explosion and Tail
- You can subclass from Emitters to create your own emitter types!!