Home > other >  Figure out how to change games coordinates
Figure out how to change games coordinates

Time:09-23


Is this, after the company asked us to draw out the coordinates to the program again, can you tell me the coordinates of the process?

CodePudding user response:

Because I am not a art, so I am as a program to answer this question,

For cocos2d application layout method and ps are basically the same, because the only difference is that ps is drawing, so there will be a lot of a lot of layers, but the procedure is a process of "put", so most of the layers will be merged as a single piece, this time, the so-called coordinates is incorporating these good piece, the coordinates of the location of the but with adapter, should consider different the resolution of 1024 x768 1136 x640, etc., a reasonable method, you figure is center is the origin of the rectangular coordinate system,
But do have a number of problems
1. There are a lot of things is not added at the bottom, but on another element, for example, you this picture, the button on the right is reasonable way is to add in the action bar button below, so true to coordinate, should be to give the coordinates in the button in the action bar,
2. Adaptation, this figure is the same you, I believe that the button of the action bar, always close to the right side of the screen to the equipment of different resolution, this position will not be a fixed value,

In a sense, you give the coordinates of the basic not much meaning,

So while the program is very want you to give out the coordinates (program can be too lazy to go to the location, there is a problem to throw it to the coordinates), but it's really just increase the workload, so the best practice or you throw your layout, program reference picture to adjust the position,

P. : feel your boss is not particularly understand the program, or is your program too melodramatic?

CodePudding user response:

, if really to like me to do for their game of a larger resources are in the lower left corner as the origin of coordinates, record image element length and the width (there seems to be a gain the size of the elves function, are not ripe, after all, a novice); Look at the problem, should be coordinate axes is given to you, and then the corresponding coordinates of the image is given;
  • Related