示例#1
0
 public PipeBody(Vector2 StartPosition, bool isTransitional, bool Side)
 {
     this.CurrentPosition    = StartPosition;
     this.Type               = SpriteHolder.PipeBodyFrame;
     this.Side               = Side;
     this.IsTransitional     = isTransitional;
     this.Sprite             = new PipeSprite(this);
     this.ShouldBeRemoved    = false;
     this.CollisionResponder = new PipeCollisionResponder(this);
 }
示例#2
0
 public PipeMerge(Vector2 StartPosition, bool isTransitional, bool Left)
 {
     this.CurrentPosition = StartPosition;
     if (Left)
     {
         this.Type = SpriteHolder.PipeMergeLeftFrame;
     }
     else
     {
         this.Type = SpriteHolder.PipeMergeRightFrame;
     }
     this.IsTransitional     = isTransitional;
     this.Side               = true;
     this.Sprite             = new PipeSprite(this);
     this.ShouldBeRemoved    = false;
     this.collisionResponder = new PipeCollisionResponder(this);
 }