This file is indexed.

/usr/share/doc/sludge/SLUDGEDevKitHelp/Overview__Creating_a_Game.html is in sludge-doc 2.2.1-2build2.

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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<TITLE>Overview: Creating a Game</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>Overview: Creating a Game</h2>
<HR>


<P>
You have two options if you want to create your own game using SLUDGE. You can start 
from scratch or, as is recommended (especially if you've never used SLUDGE before) 
you can start from one of the <a href="Download_Free_SLUDGE_Examples.html">
existing examples</a> and adapt it.
</P>

<H3>Starting from scratch:</H3>

<P>
Start the <a href="About_the_SLUDGE_Project_Manager.html">SLUDGE project manager</a> and click &quot;New&quot; in the "File" menu. It's best to create a new directory for your new project... do this by clicking the new folder icon in the standard Windows file dialog box which appears and then rename the folder to something more appropriate. Now open the new folder and type a name for the project file. Presto - a brand new SLUDGE project is born.
</P>

<H3>Adapting an example:</H3>

<P>
It's probably best to make a copy of the directory containing the example 
(using Explorer on Windows or Finder on Mac), just in case things go wrong - 
or if you need the original example again in the future. Find the folder which 
contains the example and copy it elsewhere, changing the name if necessary. Load 
the project by opening the folder and double-clicking the project icon (the name 
will end with the extension &quot;.SLP&quot;).
</P>

<P>
First, make sure you can compile it without changing it. Hit the &quot;Compile&quot; button, or &quot;Compile and run&quot; if you want to run it automatically afterwards.
</P>

<P>
Now have a look through the code in the example and see if you can work out which bits do what. If you want to try changing something in the code, change it. Compile the project again and you should see your changes. If you get an error, take another look at your code and see if you can work out what's wrong... SLUDGE commands are case-sensitive, which means if the <a href="About_the_SLUDGE_Compiler.html">SLUDGE compiler</a> finds the word <a href="blankScreen.html">blankScreen</a> it will understand exactly what you mean, but it will complain if you type BLANKSCREEN or bLaNkScReEn.
</P>

<P>
Design a room using a paint package. Make sure it's the same size (or smaller) than the screen width and height set for the project - they're shown at the bottom of the project manager window. (You can change the values if you want a different sized window.) Save your image to a TGA image file. Find a file in the example which defines a room (this is different from one example to the next, but none of the examples consist of too many files so this should be a simple enough task). Look for the line which loads the picture - it will look like this.
</P>

<P>
<pre>addOverlay ('somefile.tga', 0, 0);</pre>
</P>

<P>
Change the <a href="File_Handling.html">file handle</a> to the name of your new picture. The next time you compile and run your game, it should have your picture in it. In order to tell the program where characters can and can't walk, you can design your own floors using the <a href="About_the_SLUDGE_Floor_Maker.html">SLUDGE floor maker</a> program. Of course, you'll probably want to change the objects, where they are, what happens when a player uses them...
</P>

<P>
And if you've got this far, you can probably survive on your own. If you need to know what a certain function does, or if you want to know which other functions are available, take a look at the <a href="Alphabetical_List_of_Built-in_Functions.html">Alphabetical List of Built-in Functions</a> or, for general SLUDGE programming tips, take a look at some of the other sections which the <a href="SLUDGE_Language_Reference_Manual.html">SLUDGE Language Reference Manual</a> has to offer.
</P>

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

<HR>
</BODY>
</html>