Exemple #1
0
 private void checkHorizontalCollision(Collider hLeft, Collider hRight, Collider fLeft, Collider fRight)
 {
 }
Exemple #2
0
 private void checkVerticalCollision(Collider rTop, Collider rBot)
 {
     if (Rect.Intersects (rBot.Boundary, boundary) && Type == TileType.GrassTop) {
         robot.Landed (this);
     }
 }
Exemple #3
0
        private void initializeColliders()
        {
            colliders.Add ("upper_body", new Collider (-34, -63, 34, 0));
            colliders.Add ("lower_body", new Collider (-34, 0, 34, 128));
            colliders.Add ("left_hand", new Collider(-60, -31, -34, -11));
            colliders.Add ("right_hand", new Collider (34, -31, 60, -11));
            colliders.Add ("left_foot", new Collider (-50, 20, 0, 35));
            colliders.Add ("right_foot", new Collider (0, 20, 50, 35));

            collisionBoundary = new Collider (-110, -110, 70, 70);
        }