Exemple #1
0
 public FanTrigger()
     : base()
 {
     rendering = new NewAnimationRendering(
         TEXTURE,
         SrcRectSize,
         24,
         PhysicsConstants.MetersToPixels(position),
         0,
         new Vector2(.75f, .35f),
         Color.White) { DepthWithinLayer = 100 };
 }
 public InvokeCheckpoint(Vector2 position, int width, int height)
     : base(position, width, height)
 {
     rendering = new NewAnimationRendering(
       TEXTURE,
       SrcRectSize,
       10,
       PhysicsConstants.MetersToPixels(position),
       0,
       new Vector2(.5f, .5f),
       Color.White) { DepthWithinLayer = 100 };
 }
Exemple #3
0
 public Torch(Vector2 position, int width, int height)
 {
     Position = position;
     Width = width;
     Height = height;
     rendering = new NewAnimationRendering(
           TEXTURE,
           SrcRectSize,
           2,
           Vector2.Zero,
           0,
           Vector2.One,
           Color.White) { DepthWithinLayer = DEPTH };
 }