Interstellar map 2

Source: Internet
Author: User

Http://wcg.yesky.com/272/3321272_3.shtml

Recently, some old netizens asked why sometimes there is a lot of congestion. What are the skills?

In fact, this involves the setting of the location during the construction of interstellar buildings. Scallions were originally intended to give you a detailed explanation after coming back from the May Day holiday. However, some netizens are too anxious to ask, so I will give you a brief introduction to the principles and practical applications. because the time is too short, the calculation process and results cannot be completely correct, but it does not affect understanding the principles, after the May Day holiday, I will be back to improve my skills.

1. Set the place of the building.
1. the positions of buildings in interstellar space can only be calculated by number of cells, rather than moving at will. That is to say, you can only build a building in a specific number of maps, rather than moving a few pixels at will, only a few cells can be moved.
2. Each building is a rectangle
3. The occupied grid cannot be used in other buildings.
4. the center of the building and the center of the rectangle overlap
Shows the locations of several buildings (such as houses and barracks) used to intercept traffic in interstellar space.
A person-family house must be placed in a rectangle of 2*3 cells, and a barracks must be a rectangle of 3*4 cells.
The blue frame is the area occupied by the House, the blue dot is the building center, the red frame is the area occupied by the barracks, and the red dot is the building center.

Ii. Building settings
The building has its own volume and has its own building center. The building Center wants to expand up and down to different widths to form the final shape.
A, B, and C are the vertical houses a, barracks B, and House C.
The barracks are set

That is to say, the center of the building is extended to 48 pixels on the left, 56 pixels on the right, 40 pixels on the top, and 32 pixels on the left.
We can see that barracks B is located in its 3*4 rectangle, leaving a gap of different widths around it.
There is also a gap between the AC in the above and below houses.
The gap width between A and B is the sum of the gaps between the two buildings.

When the width of the gap is larger than that of a certain soldier, this soldier can pass through this gap, and vice versa.

Take puppies as an example. We need to find out which building combinations have a gap smaller than the puppies.
For example,
The gap width between AB is (1 + 1.5) * 32-26-40 = 14
The gap width between BC is (1 + 1.5) * 32-22-32 = 26
The size of a puppy is 15, so
When the House is above the barracks, the puppies cannot pass
When the House is below the barracks, the puppies can pass

After calculation, we can conclude that the following several frequently used construction methods can completely block intersections.
Horizontal placement:
1. Gaps Between Human houses and Scientific Research Institute (BA)
Vertical placement:
1. people's houses are on and barracks are on
2. Family houses and houses
3. The personnel and family Scientific Research Institute is in progress, and the barracks are in the bottom
4. The shenzu barracks are on, while the hearth (BF) is on.

In the above cases, the gap between the two buildings cannot be passed by the puppy. There are several other types of special buildings, but they will not appear in practice and are meaningless at all. In other cases, troops are required to stand in the center or edge of the building to make up for the gap. If you encounter special maps and intersections, Please study them on your own.
Mistakes that people often make: the god family BF is placed in the barracks; the family Ba is placed in the house; the house and house are placed horizontally (20 pixels gap ).

Below are some images for your reference.

Set Value of Main Building(Upper and lower order)
Shenzu
BF 36 36 24 20
BP 16 16 12 20
BG 48 48 32 40

People
BS 38 38 22 26
Bb 48 56 40 32
BA 40 44 32 24

Note:
The width between BG and BF is calculated as 16 pixels.
We know that the width of a puppy is 15.
So why can't puppies survive?
This is because the width of a puppy refers to the width of 15 pixels, that is, 15 (the distance between two pixels). That is to say, it actually occupies 16 pixels (both the head and end must be counted ), although the distance between BG and BF is 15 pixels long, because the two sides of the pixel have been occupied by the building itself, a puppy cannot be assigned, so the puppy cannot pass through this seemingly gap.
Therefore, we should regard the dog's body width as 16 in computing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.