10. To draw a sprite from Atlas
Entity sprite = new Entity("mySprite")
.AddComponent(new Transform2D())
.AddComponent(new SpriteAtlas("Content/atlas.wpk", “textureInAtlas”))
.AddComponent(new SpriteAtlasRenderer(DefaultLayers.Opaque));
EntityManager.Add(sprite);
11. Simple property animation
var move = new SingleAnimation(0,100, TimeSpan.FromSeconds(2f), EasingFunctions.Back);
PropertyValue = 0 PropertyValue = 100
2 seconds
19. To draw an animated character (Skeleton)
http://esotericsoftware.com/
20. To draw an animated character (Skeleton)
Entity player = new Entity(“myPlayer")
.AddComponent(new Transform2D())
.AddComponent(new SkeletalData("Content/spriteSheet.atlas"))
.AddComponent(new SkeletalAnimation("Content/spriteSheet.json"))
.AddComponent(new SkeletalRenderer());
EntityManager.Add(player);
24. 2D physics components
• WaveEngine integrates the Box2D implementation in C# called
FarseerPhysics.
• Offers a component based interface
• Not all Box2D feature are available in the current version, but the
most important ones are.