본 강좌는

http://users.tt-forums.net/purno/PDT/restored/index.html

에 있는 내용의 일부를 편의에 맞게 번역한 것입니다.

OPENTTD 도트를 찍으실 분들에게 건승을 빕니다.


스프라이트 크기


OPEN TTD의 스프라이트 크기는 최대 32픽셀입니다. 하지만 타일사이즈만으로 모든것이 설명되지를 않지요.

차량의 스프라이트의 정확한 크기를 설명하겠습니다.

아래쪽 그림은 (객차를 기준으로 )크기가 나와있으며, 이는 게임속에서의 1:1 크기입니다.

좌하-우상,좌상-우하 의 기울어진 스프라이트는 8X2 크기의 픽셀이며, 넓이는 3*2 픽셀입니다


차량은 꼭 그 크기일 필요는 없지만, 최적의 크기입니다.

A full tile in TT is 32 pixels long in X and Y directions. But that's all I'll explain about tile sizes green_tongue.png . Now I will explain the exact sizes of train sprites. Below is an image which shows the sizes of a normal passenger coach in TT. The image is in 1:1 scale.

sprite_sizes.png

The / and \ views are 8x2 pixels long (every pixel the line goes up, it goes 2 pixels sidewards, so 8x2 pixels is actually 16 pixels for the whole line). The width of the / and \ views is 3x2 pixels. The | view has a front of 7 pixels high (this can be a pixel higher for doubledecker trains). But if the train has a sloped front, the front in | view takes more pixels (the length of the roof will decrease then). The roof in | is usually 16 pixels long. _ view is 32 pixels long (this may be 31 if this fits better). The side in | view is 7 pixels in height and the roof takes 4 pixels.

A train sprite doesn't have to be this size. The sizes mentioned are the maximum sizes. With TTDPatch it's possible too make shorter train sprites up to 5/8 of their maximum length.


warning.gif REVISION
Below is a more complete sprite size overview by Michael Blunck:
file.php?id=81821

차량단축레벨 - 차량스프라이트 크기
source



색상표


warning.gif REVISION
You can only use limited colors in your sprites. Take a look at the image below:

ttd시리즈에서는 아래의 팔렛트에 있는 색상만 사용가능합니다.
windowspal.png
source

특별히 필요하지 않는 한, "Normal(일반)"이라고 표시된 색상만을 사용하십시오. 게임 내에서 색상 그대로 나오는 색입니다.

그 외에, 투명색인 파란색과 회사별로 색깔을 달리할 수 있는 "Company" 색상도 있습니다. 그리고 각 회사의 두번째 색상을 표시하는 "Patch Company 2"색상도 있습니다.


Only use the colors marked as "Normal". All other colors are action colors and might appear flashy or otherwise different ingame than in your sprites.
Excaptions are the Transaperent blue which you need to put around your sprites in a box shape, so you won't get white areas around your sprites ingame. More of this explained in the tutorials.
Then there's the "Company" colors. Some sets use this, so they player can choose the vehicle's color ingame, like the original vehicles.
A patch has been made for a second company color. This color can be used for a second company color for the player to choose, or for a real color. In the GRF it's specified which of the two options is chosen.


스프라이트 찍는 순서



sprite_order.png

warning.gif REVISION

스프라이트는 프로그래밍하기 전에 반드시 정렬해야만 합니다.

그래픽을 만드는 사람은 프로그램을 짜는 사람에게 혼돈을 덜고자, 아래 그림과 같은 정렬을 합니다.

위쪽 줄은 앞,뒤의 모양이 같은 객차같은 차량에서(4개짜리)

아래쪽 줄은 앞, 뒤가 다른 기관차, 자동차에서 사용합니다. (8개짜리)

Sprites need to be ordered in a specific order before they can be coded. Of course you can put them in any messy order and let your coder figure out how to order them, but that's rather rude. As artist you know best what the order of sprites is, especially with complicated train consists you see in some multiple units. Below is an example of how sprites should be ordered.


sprite_order.png sprite_order.png

sprite_order.png