+------------------------------------------------------------------------------------------+ |Dangerous Dave II tile property format: | +------------------------------------------------------------------------------------------+ This covers the data segment that determines the properties of tiles in Dangerous dave and Shadow Knights. The tile properties 'file' is internal, being stored in the executable at the following locations: Dave: $2841E Shadow: $ For the purposes of this document we will treat it as an external file, 'TILES.TLI' (As can be done with Tileinfo and patching in Keen 1-3.) In a nutshell the file is divided into five 'planes'; each composed of one-byte entries. Each plane covers a specific property of the tileset, such as blocking-up or general behavior. The total size of the tile file is thus (tilenum * 5) bytes ------------------------------------------------------------------------------- FILE STRUCTURE: BLOCKING UP ... .. . BLOCKING DOWN ... .. . BLOCKING RIGHT ... .. . BLOCKING LEFT ... .. . ANIMATION ENTRIES ... .. . BEAHVIOR ENTRIES ... .. . ------------------------------------------------------------------------------- NOTES: ANIMATION ENTRIES Animation is disabled, this plane is utterly blank. BEHAVIOR ENTRIES: This property is basically how a tile interacts with the player; exit door, kills, etc. Valid values are between 0-99 (And value higher is 'nothing') The following list describes what value is what: 00: Nothing 01: Openable door [If sprite present] [Dave only] 02: Enterable door [Dave only] 13: Kills [Knives] 99: Exit level BLOCKING ENTRIES: The possible values here are 0, or not 0 (Usually 1) A value of 0 means Keen can move past INTO the x-or-y boundry of a tile (Its left side, bottom, etc) and a value of 1 means he is stopped from doing so. One way tiles are thus ones that let him OUT past a boundry, but not in. (But you already knew that.)