Manual/File Formats Used by SLUDGE

From Hungrysoftware

In order to create a game using SLUDGE you will have to be able to handle files using Windows. Much of the file handling in SLUDGE is automated, but in order to use graphics, sounds and music (for example) you will have to create and work with the files yourself.

*= These file formats can be included in a SLUDGE compiled game. See the section on file handling for information on how to include these files in a compiled game. Other file types (such as HTML pages or Windows Help files) can be executed by a SLUDGE game using the launch and launchWith commands. These files must then be provided with the compiled game, as they will not be included inside the file itself.

File formats specific to SLUDGE:

.SLP

The extension given to a SLUDGE project file, as used by the SLUDGE project manager and SLUDGE compiler - these files contain the filenames of the scripts from which the game is to be built and general project data (such as a game's title, whether it should be run full-screen and so on).

.SLU

A SLUDGE script, containing object definitions and functions. See the SLUDGE Language Reference Manual for information on how to use the language.

.SLD

A SLUDGE constant definitions file. Here you can set up your own constant definitions (which are used in a similar way to items created using #define in C and C++).

.SLG

A compiled SLUDGE game. Double click it to play it. Requires an up-to-date version of the SLUDGE engine to be installed on your machine. These compiled game files can be distributed as you see fit.

.INI

See .ini files for compiled SLUDGE games.

.ZBU *

A SLUDGE z-buffer file. These can be created using the SLUDGE z-buffer maker and can be loaded and unloaded using the setZBuffer function.

.FLO *

A SLUDGE floor file. These can be created using the SLUDGE floor maker and can be loaded and unloaded using the setFloor function.

.DUC *

A SLUDGE sprite bank file, containing one or more (or zero, but that's a bit pointless) sprites for use in a game. Sprites are used for mouse cursors, moving characters and inventory objects. Create and maintain these files using the SLUDGE sprite bank editor and use them in animations for your game with the anim command. The extension .DUC comes from a previous Hungry Software game, Ducks, which used the same file format for its sprites.

.SLX

An image compressed using the SLUDGE image compression algorithm. These are optionally left on your machine after compilation; you can enable and disable this feature by selecting "Keep compressed images" from the "SLUDGE Settings" menu in the SLUDGE project manager application. Keeping these files decreases the time it takes to compile your game. However, you can't actually use them for anything yourself. Don't, for example, expect notepad or a paint package to make any sense of them.

Standard formats used by SLUDGE:

.AVI *

The movie format supported by SLUDGE. Registered users can start a movie playing using the movieStart function.

.TGA *

The graphics format with which SLUDGE works. Load images into your game using the addOverlay function or convert images into z-buffers and sprite banks using the SLUDGE z-buffer maker and SLUDGE sprite bank editor respectively.

.WAV, .MP3, .OGG *

Sound effects, music and, if you choose, recorded speech. Play these using the playSound function, loop them with loopSound or make characters say or think them with the say and think functions.

.XM, .MOD, .IT, .S3M, .MO3 *

The track-based music formats supported by SLUDGE. Play these using the startMusic function.

.MID, .RMI *

Midi music. The current SLUDGE engine cannot play these - however, you can still try, so that old projects still compile. Trying to do so, however, will produce a warning.

Personal tools