File: mapeditor.html

package info (click to toggle)
trackballs 1.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 40,072 kB
  • sloc: cpp: 17,863; lisp: 4,626; xml: 51; sh: 24; makefile: 7
file content (213 lines) | stat: -rw-r--r-- 5,334 bytes parent folder | download | duplicates (5)
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title> Trackballs - Map Editor </title>
<link title="Default style" rel="stylesheet" href="default.css" type="text/css">
</head>

<body>

<div class="toc">
<ol>
<li> <a href="index.html"> Players guide </a> </li>
<li> <a href="customizing.html"> Creating your own levels </a> </li>
<li> <a href="mapeditor.html"> Map editor </a> </li>
<li> <a href="scriptingLanguage.html"> Scripting Language </a> </li>
<li> <a href="api.html"> API Reference </a> </li>
<li> <a href="examples.html"> Examples </a> </li>
</ol>
</div>

<div class="pagebody">

<h1> The Map Editor </h1>

<p>
To start the map editor in trackballs press the "map editor" button in the begining of the game. This brings up an empty screen with a menu in the top. You can here select "File>Open" or "File>New" if you want to open an existing map for editing or if you want to create a new one.
<p/>

<h2> Keyboard controls for the Editor </h2>
<table>
<tbody>
<tr>
<td width="600">
<table>
<tbody>
<tr>
<td width="220" valign="top">
<p><b>ESCAPE</b></p>
</td>
<td valign="top">
<p>Exits the editor without saving changes (confirm dialog)
<br> &nbsp;
</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>F1 - F6</b></p>
</td>
<td valign="top">
<p>Toggles the through the the various MODES:
<br> &nbsp;
<tt>Save Map</tt> - Press SPACE to save
<br> &nbsp;
<tt>Edit</tt> - Edit terrain structure
<br> &nbsp;
<tt>Set Color</tt> - Color and paint terrain
<br> &nbsp;
<tt>Flags</tt> - Set cell attributes eg: sand, acid, kill, ice, etc
<br> &nbsp;
<tt>Add Feature</tt> - Create hills quickly. Use 1-4 to select size
<br> &nbsp;
<tt>Move Map</tt> - Shift entire map in direction you choose
<br> &nbsp; </p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>Q, E</b></p>
</td>
<td valign="top">
<p>Increments or decreases the amount terrain is 'raised' when altering terrain
<br> &nbsp;
</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>W, A, S, D or ARROW
KEYS/B&gt;</b></p>
</td>
<td valign="top">
<p>Moves the cursor to a neighboring square on the grid. Combine with CTRL to jump 20 cells each time.
<br> &nbsp; </p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td>
<table>
<tbody>
<tr>
<td width="220" valign="top">
<p><b>U, H, M, K, J</b></p>
</td>
<td valign="top">
<p>Alter the current square. If in <tt>Edit Height</tt> mode the corresponding corner of the marked square/region is raised/lowered. Otherwise, if in <tt>Set color</tt> mode the correponding corner is coloured with the current color.
<br> &nbsp;
</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>1,2,3,4,5,6,7,8,9</b></p>
</td>
<td valign="top">
<p>If in <tt>Flags</tt> mode, these keys toggles the flag for the current square. If in <tt>Set color</tt> mode, keys 1,2,3 alter the red/green/blue component of the current color.
<br> &nbsp;
</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>B</b></p>
</td>
<td valign="top">
<p>Toggles <tt>Birds-Eye View</tt> mode.
<br>&nbsp;</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>L</b></p>
</td>
<td valign="top">
<p>Loads the objects from the .scm file corresponding to the level into the editor. Script actions altering map cell properties will be ignored. The objects will be frozen at their initial location.
<br>&nbsp;</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>C</b></p>
</td>
<td valign="top">
<p>Clear loaded objects if there are any.
<br>&nbsp;</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>R</b></p>
</td>
<td valign="top">
<p>Rotates camera viewpoint 90 degrees, if the View menu is open. 
<br>&nbsp;</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>R</b></p>
</td>
<td valign="top">
<p>Used to mark and manipulate rectangular regions. Press once to turn on and then move cursor to opposite corner (region is highlighted during this operation). Press once again to turn off.
<br> &nbsp;
</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>SPACE</b></p>
</td>
<td valign="top">
<p>Alters entire cell in one go - whether modifying terrain height or color.
<br> &nbsp;
</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>SHIFT</b></p>
</td>
<td valign="top">
<p>Holding down the SHIFT key has a number of functions depending on what additional key is pressed. When in <tt>Edit Height</tt> mode, holding down the SHIFT key while using U, H, M, K, J will lower the terrain instead of raising it. Holding SHIFT while moving the cursor, will make the cursor hop in the direction pressed. Holding SHIFT while raising/lowering the amount to raise/lower with the Q and E keys, while result in the values incrementing/decreasing in larger hops. When in <tt>Set Color</tt> mode, SHIFT-[U,H,M,K] is a color picker. The color in your palette will be copied from the current cell.
<br> &nbsp; </p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>CTRL</b></p>
</td>
<td valign="top">
<p>When in edit terrain mode, CTRL-J will reset the cell (or selected terrain) to default heights. Useful when you've made a mess and need to start over. CTRL-[U,H,M,K] paints the wall next to the corresponding corner.
<br> &nbsp;
</p>
</td>
</tr>
<tr>
<td valign="top">
<p><b>TAB</b></p>
</td>
<td valign="top">In 'Edit Heights' mode, TAB<b> </b>smooth all the cells heights in the current area selected.
<br> With the CTRL modifier, it flatten the current cell. </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

</div>
</body>

</html>