Example #1
0
 public void Add(FallingObject fallingObject)
 {
     foreach (Pixel pixel in fallingObject.Body)
     {
         this.body.Add(pixel);
         levelElementsCount[pixel.Coordinate.Y]++;
     }
 }
Example #2
0
 public void Add(FallingObject fallingObject)
 {
     foreach (Pixel pixel in fallingObject.Body)
     {
         this.body.Add(pixel);
         levelElementsCount[pixel.Coordinate.Y]++;
     }
 }
Example #3
0
        public Field(FallingObject fallingObject, FallingObject nextFallingObject)
        {
            this.FallingObject         = fallingObject;
            this.TopLeftPlayGround     = new Point2D(4, 5);
            this.BottomRightPlayGround = new Point2D(Game.Width - 20, Game.Height - 5);

            this.Earth             = new Earth(this.TopLeftPlayGround, this.BottomRightPlayGround);
            this.Border            = new Border(this);
            this.NextFallingObject = new NextFallingObject(this, this.FallingObject);
            this.ControlsInfo      = new ControlsInfo(this);
            this.Score             = new Score(this);
            this.Clock             = new Clock(this);
        }
Example #4
0
 public NextFallingObject(Field field, FallingObject fallingObject)
 {
     this.FallingObject = fallingObject;
     this.x             = field.BottomRightPlayGround.X;
     this.y             = field.TopLeftPlayGround.Y;
 }
Example #5
0
 public NextFallingObject(Field field, FallingObject fallingObject)
 {
     this.FallingObject = fallingObject;
     this.x = field.BottomRightPlayGround.X;
     this.y = field.TopLeftPlayGround.Y;
 }
Example #6
0
        public Field(FallingObject fallingObject, FallingObject nextFallingObject)
        {
            this.FallingObject = fallingObject;
            this.TopLeftPlayGround = new Point2D(4, 5);
            this.BottomRightPlayGround = new Point2D(Game.Width - 20, Game.Height - 5);

            this.Earth = new Earth(this.TopLeftPlayGround, this.BottomRightPlayGround);
            this.Border = new Border(this);
            this.NextFallingObject = new NextFallingObject(this, this.FallingObject);
            this.ControlsInfo = new ControlsInfo(this);
            this.Score = new Score(this);
            this.Clock = new Clock(this);
        }