Manual page for CROCK(5)
config.crock - master configuration file for crock
SYNOPSIS
config.crock
DESCRIPTION
The
config.crock
file contains entries that specify certain global game parameters,
the locations of bitmaps and sound files and the locations of the
player-specific config files (see also
player.config(5)
).
There are four types of commands:
set, background, sound,
and
player.
Each command is terminated by a newline.
Lines that begin with a hash sign
(#)
are interpreted as comments and are ignored, as are blank linkes.
Set entries have the following form:
set variable value
-
variable
-
can be one of the following:
-
- width
-
to set the global width of the screen
- height
-
to set the global height of the screen
-
value
-
is a numeric value.
- Background entries have the following form:
-
background filename xoffset yoffset level_name
-
filename
-
is the full path to the X bitmap file for that background.
-
xoffset
-
and
yoffset
are numeric offsets for the image in pixels. If zero, the bottom, left
corner of the image is anchored to the bottom, left side of the window.
-
level_name
-
is the name of the level. It is a string that is terminated by the
end of a line, hence are legal characters to use.
Note that this name might be used in
crock
itself, for certain properties that are specific to a particular level.
Note that there can be as many
background
lines as desired. If not cached,
crock
will load in the image at the beginning of the match.
- Sound entries have the following form:
-
sound_keyword filename
-
sound_keyword
-
tells
crock
which sound to load. Legal values are:
-
-
-
fight
-
for the word "fight", spoken at the start of a round.
- finish
-
for the phrase "finish him", spoken at the end of a match
when a finishing move can be performed. Since there are no female
fighters currently, a "finish her" sound has not been implemented.
- flawless
-
for the phrase "flawless victory", spoken when the winner has
received no damage during a match. There is no text displayed simultaneously
for this.
- fatality
-
for the phrase "fatality", spoken after a fatality has been performed.
- startfatal
-
for the sound effect at the beginning of a fatality move.
- player1wins
-
for the phrase "player one wins", spoken at the end of a round that
is won by player one.
- player2wins
-
for the phrase "player two wins", spoken at the end of a round that
is won by player two.
-
filename
-
is the full path to the sound file. It can be in any format that
netaudio
accepts.
- Player entries have the following form:
-
player filename
-
filename
-
is the full path to the config file for that player. For details
on the format of the player's config file, refer to
player.config.5
EXAMPLES
Here is a trimmed down version of the config file currently used by crock.
Note that the only difference is that the real version has more backgrounds
it uses.
set height 350
#set width 780
set width 550
#set the background image
background /n/weather/0/frank/frames/backgrounds/battlefield2.xbm 0 0 Fire Sword Shrine
background /n/weather/0/frank/frames/backgrounds/graffiti.xbm 0 0 The Playground
background /n/weather/0/frank/frames/backgrounds/battlefield7.xbm 0 0 The Graveyard
background /n/weather/0/frank/frames/backgrounds/battlefield4.xbm 0 -25 Country Estate
#set the "fight" sound
fight /n/monster/1/remcon/frank/sounds/fight.wav
#set the "finish him" sound
finish /n/monster/1/remcon/frank/sounds/finish.wav
#set the "flawless victory" sound
flawless /n/monster/1/remcon/frank/sounds/flawless.wav
#set the "fatality" sound
fatality /n/monster/1/remcon/frank/sounds/fatality.wav
#set the start of fatality sound
startfatal /n/monster/1/remcon/frank/sounds/uh-oh.wav
#set the "player 1 wins" sound
player1wins /n/monster/1/remcon/frank/sounds/player1wins.wav
#set the "player 2 wins" sound
player2wins /n/monster/1/remcon/frank/sounds/player2wins.wav
# set up the player config files
#player /n/weather/0/frank/bin/g.load
#player /n/weather/0/frank/bin/f.load
#player /n/weather/0/frank/bin/leftg.load
#player /n/weather/0/frank/bin/rightgecko.load
player /n/weather/0/frank/bin/tb.load
player /n/weather/0/frank/bin/gecko.load
FILES
- config.crock
-
- player1.config
-
- player2.config
-
SEE ALSO
crock.1
player.config.5
netaudio,
AUTHOR
Copyright (c) 1994 Frank Adelstein
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97