Prev: 51255 Up: Map Next: 51420
51359: Deal with and check room item, creature or scenery
Used by the routine at 51255.
The first byte of the working data set at 60227 (this data is copied from each of the 16 byte room item data sets at 31744) is checked here.
It indicates the type of room object that needs to be drawn, checked or generally dealt with.
51359 LD A,(60227)
51362 CP 1 Back wall bricks/scenery, or door frames, wall/floor connector graphics or cursor
51364 JP Z,53885
51367 CP 2 Door
51369 JP Z,51420
51372 CP 3 Creature
51374 JP Z,52616
51377 CP 4 Interactable objects (e.g. key, chest, scroll)
51379 JP Z,51968
51382 CP 5 Missile fired by creature/warlock
51384 JP Z,53403
51387 CP 6 Vertical back wall/floor connector (left)
51389 JP Z,53601
51392 CP 7 Vertical back wall/floor connector (right)
51394 JP Z,53616
51397 CP 8 Missile fired by Maroc
51399 JP Z,53403
51402 CP 15 Tunnel position (& direction)
51404 JP Z,53625
51407 CP 14 Tunnel item (side boundary wall, bat or spider)
51409 JP Z,53714
51412 CP 32 Room position & viewport
51414 JP Z,53870
51417 JP 53885 Jump from here if nothing to deal with.
Data set room items that are no longer present (e.g. a destroyed creature) will have this byte set to 0 to indicate they no longer exist.
Prev: 51255 Up: Map Next: 51420