Beispiel #1
0
 public void SetupSprites(CanvasAnimatedControl canvas)
 {
     sprites.Add(Shape.Player, SpriteBuilder.RenderFromShape(canvas, 48, 32, Shape.Player));
     sprites.Add(Shape.Turret, SpriteBuilder.RenderFromShape(canvas, 48, 32, Shape.Turret));
     sprites.Add(Shape.Bullet, SpriteBuilder.RenderFromShape(canvas, 24, 4, Shape.Bullet));
     sprites.Add(Shape.PowerUp, SpriteBuilder.RenderFromShape(canvas, 48, 32, Shape.PowerUp));
     sprites.Add(Shape.SniperBullet, SpriteBuilder.RenderFromShape(canvas, 1000, 4, Shape.SniperBullet));
 }
Beispiel #2
0
 public void AddDynamicSprite(CanvasAnimatedControl canvas, Shape shape, float bitmapSize)
 {
     sprites.Add(shape, SpriteBuilder.RenderFromShape(canvas, bitmapSize * 2, bitmapSize * 2, shape));
 }