File: hex2t.tilespec

package info (click to toggle)
freeciv 2.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 95,924 kB
  • ctags: 20,829
  • sloc: ansic: 231,256; sh: 4,872; makefile: 2,867; python: 1,259; yacc: 318
file content (186 lines) | stat: -rw-r--r-- 3,534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186

[tilespec]

; Format and options of this tilespec file:

options = "+tilespec4"

; A simple name for the tileset specified by this file:

name = "hex-2 tileset"
priority = 5

; TODO: add more overall information fields on tiles, 
; eg, description, authors, colors, etc.

; Basic tile sizes:

normal_tile_width  = 40
normal_tile_height = 72
small_tile_width   = 15
small_tile_height  = 20

; Use roadstyle 0 (old iso style)

roadstyle = 0

; Use fogstyle 0 (old iso style)

fogstyle = 0

; Use darkness style 1 (single-sprite)

darkness_style = 2
 
; offset the flags by this amount when drawing units

unit_flag_offset_x = 1
unit_flag_offset_y = 59
city_flag_offset_x = 1
city_flag_offset_y = 51

; offset units by this amount

unit_offset_x = 4
unit_offset_y = 57

; offset the citybar text by this amount (from the city tile origin)

citybar_offset_y = 48

; Hex data.

is_hex = 1
is_isometric = 1
hex_side = 24

; Font to use to draw city names:

city_names_font = "6x13bold"

; Font to use to draw city productions:

city_productions_font = "6x13"

; Should flags be drawn as transparent:  (else opaque)

flags_are_transparent = 1

; Font size (points) to use to draw city names and productions:
city_names_font_size = 10
city_productions_font_size = 10

; These are special because they get freed and reloaded
; as required:

main_intro_file    = "misc/intro"
minimap_intro_file = "misc/radar"

; Below, the graphics spec files; must be somewhere (anywhere) in 
; the data path. Order may be important for color allocation on 
; low-color systems, and if there are any duplicate tags (lattermost
; tag is used).

files = 
  "misc/colors.spec",
  "misc/overlays.spec",
  "misc/citybar.spec",
  "hex2t/tiles.spec",
  "hex2t/overlays.spec",
  "trident/units.spec",
  "hex2t/select.spec",
  "hex2t/items.spec",
  "hex2t/grid.spec",
  "misc/small.spec",
  "misc/buildings.spec",
  "misc/flags.spec",
  "misc/shields.spec",
  "misc/cursors.spec",
  "misc/space.spec",
  "misc/techs.spec",
  "misc/treaty.spec",
  "misc/icons.spec",
  "amplio/nuke.spec"


; Include color definitions
*include "misc/colors.tilespec"

; Terrain info - see README.graphics

[layer0]
match_style = "BOOL"
match_types = "ocean", "other"

[layer1]
match_style = "BOOL"
match_types = "forest", "hills", "mountains", "jungle", "steep"

[terrain_arctic]
is_blended = 1
num_layers = 1
layer0_match_type = "other"
mine_sprite = "tx.oil_mine"

[terrain_desert]
is_blended = 1
num_layers = 1
layer0_match_type = "other"
mine_sprite = "tx.oil_mine"

[terrain_forest]
is_blended = 1
num_layers = 2
layer0_match_type = "other"
layer1_match_style = "bool"
layer1_match_type = "forest"

[terrain_grassland]
is_blended = 1
num_layers = 1
layer0_match_type = "other"

[terrain_hills]
is_blended = 1
num_layers = 2
layer0_match_type = "other"
layer1_match_style = "bool"
layer1_match_type = "steep"
mine_sprite = "tx.mine"

[terrain_jungle]
is_blended = 1
num_layers = 2
layer0_match_type = "other"
layer1_match_style = "none"
layer1_match_type = "jungle"

[terrain_mountains]
is_blended = 1
num_layers = 2
layer0_match_type = "other"
layer1_match_style = "bool"
layer1_match_type = "steep"
mine_sprite = "tx.mine"

[terrain_ocean]
is_blended = 0
num_layers = 1
layer0_match_style = "bool"
layer0_match_type = "ocean"
layer0_cell_type = "rect"

[terrain_plains]
is_blended = 1
num_layers = 1
layer0_match_type = "other"

[terrain_swamp]
is_blended = 1
num_layers = 1
layer0_match_type = "other"

[terrain_tundra]
is_blended = 1
num_layers = 1
layer0_match_type = "other"