Skip to main content

Crate openblood

Crate openblood 

Source
Expand description

OpenBlood: an open-source engine that runs the original Blood (1997) data files. You must own the original game; OpenBlood ships no game content.

Modulesยง

app ๐Ÿ”’
Window, input and presentation loop.
audio ๐Ÿ”’
Sound effects: SFX/RAW from SOUNDS.RFF mixed in software with 3D panning.
cdaudio ๐Ÿ”’
Red Book CD audio: extracts music tracks from the userโ€™s own disc image (CUE/BIN) into TRACKnn.WAV files, which OpenBlood then plays as level music.
config ๐Ÿ”’
openblood.ini settings (simple key = value lines, ; comments).
fm ๐Ÿ”’
Two-operator FM voices in the style of the Yamaha OPL2/OPL3 chips, used to play Bloodโ€™s MIDI music with its AdLib timbre bank when no CD audio was ripped.
hud ๐Ÿ”’
Heads-up display drawn over the 3D view (resolution independent).
menu ๐Ÿ”’
Front-end menus drawn with the original Blood font and art tiles.
midi ๐Ÿ”’
MIDI music: Standard MIDI Files with Apogeeโ€™s EMIDI extensions, played with the FM voices in crate::fm and Bloodโ€™s AdLib timbre bank (GMTIMBRE.TMB in SOUNDS.RFF). Used for a levelโ€™s Song= (BLOOD.INI) when no CD audio track was ripped.
movie ๐Ÿ”’
Cutscene playback: Smacker videos (intro logos and episode cutscenes) from the userโ€™s own game files, with their separate WAV soundtracks.
scale ๐Ÿ”’
Scaling the rendered frame to the window: area averaging when shrinking (supersampling anti-aliasing), and nearest / bilinear / sharp-bilinear when enlarging.
tools ๐Ÿ”’

Functionsยง

find_data_dir ๐Ÿ”’
level_list ๐Ÿ”’
Episode map order from BLOOD.INI (falls back to the maps found in BLOOD.RFF).
main ๐Ÿ”’