This file is indexed.

/usr/share/doc/sludge/SLUDGEDevKitHelp/About_the_SLUDGE_Floor_Maker.html is in sludge-doc 2.1.2-3build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<TITLE>About the SLUDGE Floor Maker</TITLE>
  <link rel="stylesheet" type="text/css" href="style.css" />
</head>
<BODY>
<HR>
<div align="center"><img id="headerGraphic" src="images/sludge300.png" alt="SLUDGE"/></div>
<h2>About the SLUDGE Floor Maker</h2>
<HR>

<H3>Description of SLUDGE floor plans:</H3>

<P>
A SLUDGE floor plan is a group of convex polygons which may, or may not, be joined together. If one polygon is joined to another by a line (i.e. they share two vertices) characters can walk from one polygon to the other by crossing the shared line. Note that SLUDGE does not support characters crossing from one polygon to another where they meet at a point (i.e. they share only one vertex).
</P>

<H3>Creating a floor:</H3>

<P>
To define the walkable area(s) for a scene, use the SLUDGE Floor Maker.</p>

<p>On Mac, there's a "new floor" entry in the Tools menu of the Development Kit.</p>

<p>On other platforms, the Floor Maker is a separate program. First make sure that there's no
floor in memory already by choosing <b>New</b> from the <b>File</b> menu (you do not need to do this if 
you've only just started the program, unless you started it by double-clicking 
an existing floor file).
</P>

<P>
Now, load the main image for the scene by pressing the file selection button in the toolbar (labelled <b>Load backdrop</b> on Mac).
</P>

<P>
Work out in your head where you want characters to be able to walk. Characters should not be able to walk up to the very edges of the actual floor... instead, make the edge of the walkable area roughly one footstep away from any walls or obstacles which appear in the image. Confused? This is how one of of the floors of the verb coin example looks:
</P>

<P>
<IMG SRC="images/floormaker.jpg">
</P>
<P>

Now, start putting the floor onto the screen. The boundary of a floor is made up 
of straight lines between corners (vertices, as they're called in the program). 
Click <IMG SRC="images/floormodeicon1.png"> to enter the "Define floor borders" mode. 
Click on the screen (Mac: Hold down Command and click) where you want to add a vertex. 
When you're done, click the first vertex again to complete the walkable area.
</P>

<P>
If the floor is a concave shape (it has at least one corner which pokes in rather 
than sticks out) you'll need to split it into two or more convex shapes (which only 
contain vertices which point outwards). Push <IMG SRC="images/floormodeicon5.png"> 
(Split floor), click and hold the left mouse button (Mac: Command-click) while 
pointing at one of the inwardly-pointing vertices... now drag the line so that 
it ends at another vertex. A line will be added, splitting the appropriate segment 
of floor into two.
</P>

<P>
(The reason for this is that if a character is told to walk from one point to 
another, and both points are within the same section, the engine assumes the 
character can move in a straight line. This is the main principle behind the 
path-finding method used in SLUDGE.)
</P>

<H3>Changing a floor:</H3>

<P>
If you want to change a floor using the floor maker, make sure it's loaded and 
select the appropriate mode. The modes are as follows:
</P>

<P>
<IMG SRC="images/floormodeicon1.png"> <b>Define floor borders</b>: Already discussed 
above. If you want to add a section of floor outside of what's already been defined, 
you can use this mode to add a new polygon. If you want to create a floor plan with 
holes (for example, so that characters can walk around both sides of pillars) you 
must use this method.
</P>

<P>
<IMG SRC="images/floormodeicon2.png"> <b>Move vertices</b>: Drag the mouse (Mac: hold 
down Command and drag) to move a vertex to a new 
location. Vertices can even be dragged onto other, already existing vertices.
</P>

<P>
<IMG SRC="images/floormodeicon3.png"> <b>Delete vertex</b>: Click 
(Mac: Command-click) on a vertex and it will be removed. (Once a polygon 
has too few vertices it is removed.)
</P>

<P>
<IMG SRC="images/floormodeicon4.png"> <b>Split line</b>: Drag the mouse (Mac: 
hold down Command and drag) from one end to the other of an existing line. 
A new vertex will be created halfway along the selected line.
</P>

<P>
<IMG SRC="images/floormodeicon5.png"> <b>Split floor</b>: Drag the mouse (Mac:
hold Command and drag) to create a line which splits one segment into two. 
Use this in order to make sure the floor is only made up of convex polygons. 
The line must start and end at vertices which are present in the same segment.
</P>



<H3>Scrolling:</H3>

<P>
Windows and Linux: If your scene is larger than the SLUDGE floor maker window, you can scroll around 
the image by holding down the right mouse button and dragging the mouse in the 
direction in which you wish to move.</p>

<p>Mac: Click and drag to scroll the scene. You can also zoom in and out with
two-finger scrolling.
</P>


<H3>Changing the colour used to draw the floor plan:</H3>

<P>
If your scene has colours that make it difficult to see the floor plan, 
change the colour the floor plan is drawn in using the colour chooser button 
in the toolbar.
</P>

<H3>Saving your floor:</H3>

<P>
To save your work, choose <b>Save</b> or <b>Save as...</b> from the <b>File</b> menu. Choosing <b>Save</b> will store your floor in the same file from which it was loaded, or to which it was saved last. (This filename is shown in the title bar of the window.) Choosing <b>Save as...</b> lets you select a new filename.
</P>

<H3>Loading an existing floor:</H3>

<P>
To load an existing floor, choose <b>Open</b> from the <b>File</b> menu. Alternatively, double-click on the floor file and the Floor Maker will start and load the file automatically.
</P>

<H3>Using floors in your game:</H3>

<P>
To load a floor, use the <a href="setFloor.html">setFloor</a> command. From that moment onwards, characters told to move by use of the <a href="moveCharacter.html">moveCharacter</a> command will (a) only move to within your defined floor plan and (b) if starting within the floor plan never leave it, automatically walking around obstacles and furniture. (Characters can still be moved to points off the floor by the <a href="forceCharacter.html">forceCharacter</a> command.)
</P>

<P class="copyright-notice">SLUDGE and this SLUDGE documentation are <A HREF="Copyright.html">copyright</A> Hungry Software and contributors 2000-2011
</P>

<HR>
</BODY>
</html>