conveyor graphics fix
[jetset.git] / worldmap_fmt0.txt
blobe1b20c13e42f4c44fe259a892df2df17d49d545c
1 room format:
2   db "JSWROOM0"     ; signature
3   dw roomCount      ; number of rooms in this file
4   dd roomCount*(?)  ; offset in file for each room
5   dw startRoom
6   db startX, startY ; Willy's starting coordinates (in pixels, unsigned)
7   db startDir       ; 0xff: left; 1: right
8   dw winItemCount   ; how many items we should collect to win the game
10 room data follows -- for each room:
11   db 32*16*(?)      ; room tiles
12   ubyte flags       ; room flags
13   ubyte srtype      ; special room type (see below)
14   dw exitLeft       ; room index or -1
15   dw exitUp         ; room index or -1
16   dw exitRight      ; room index or -1
17   dw exitDown       ; room index or -1
18   db nameLen        ; chars in name
19   db nameLen*(?)    ; name
20   db len,len*(?)    ; willy's sprite lump
21   dw wspr           ; willy's sprite
22   db border         ; border color
23   db tileCount      ; number of non-empty tiles in this room (usually 8)
24   tile graphics info, repeats tileCount times
25     db len,len*(?)    ; sprite lump
26     dw spridx         ; index (unsigned)
27     db ink, paper
28   db monsterCount   ; number of monsters in this room
29   monster info, repeats monsterCount times
30     db len,len*(?)    ; sprite lump
31     dw spridx         ; index (unsigned)
32     db color          ; monster color
33     db flags          ; monster flags
34     db x, y           ; unsigned
35     db dx, dy         ; signed
36     db counter        ; dunno
37     db reload         ; dunno
38     db ofsmask        ; dunno
40 srtype:
41   enum {
42     Normal        = 0,
43     MasterBedroom = 1, // 0x21
44     Rocket        = 2, // 0x77
45     RigorMortis   = 3, // 0x4b
46     Crypt         = 4, // 0x4c
47     HellTribbles  = 5, // 0x3b, 0x71: Highway to Hell, The Trubble with Tribbles
48     Eggoids       = 6, // 0x7e
49     Foot          = 7, // 0x67
50     BeamDown      = 8, // 0x60
51     BeamUp        = 9, // 0x7f
52     Isle          = 10, // 0x50
53     BellInvasion  = 11, // 0x44, 0x79: Belfry, Galactic Invasion
54     TripSwitch    = 12, // 0x47
55     Yacht         = 13, // 0x38
56   }
59 note that switch in TripSwitch is reversed: it is initially right, but drawn as left