Prev: 40987 Up: Map Next: 41471
41356: Routine at A18C
Used by the routines at PlayerMovement and GamePlay_Start.
41356 LD A,(IX+1) A=IX+1 (current location).
41359 CP 136 If this is not location 136 (room 7) then jump to 41375.
41361 JR NZ,41375
41363 LD A,(IX+4) A=IX+4 (sprite y co-ordinate).
41366 CP 128
41368 JR NC,41375
41370 INC SP
41371 INC SP
41372 JP GameComplete Jump to GameComplete.
41375 BIT 7,(IX+11)
41379 RET Z
41380 RES 7,(IX+11)
41384 JP 41479 Jump to 41479.
41387 LD A,(38659)
41390 CP (IX+1)
41393 RET NZ
41394 LD BC,3084 BC=3084.
41397 LD A,(38547) A=CounterLow.
41400 AND %00000001 Keep only bit 0.
41402 JR NZ,41415
41404 LD A,(IX+5) A=IX+5 (entity colour).
41407 INC A
41408 AND %00000011 Keep only bits 0-1.
41410 OR %01000100 Set bits 2 and 6.
41412 LD (IX+5),A Write A back to IX+5 (entity colour).
41415 CALL 43777 Call 43777.
41418 JP NC,41754
41421 LD A,(38669)
41424 OR 128
41426 LD C,A
41427 LD A,(IX+0)
41430 SUB 144
41432 JR Z,41459
41434 DEC A
41435 JR Z,41463
41437 DEC A
41438 JR Z,41467
41440 SET 3,C
41442 LD A,C
41443 LD (38669),A
41446 CALL DrawEntity Call DrawEntity.
41449 LD (IX+0),0 Write 0 to IX+0 (sprite reference).
Add 29952 points to the players score.
41453 LD BC,29952 BC=29952.
41456 JP AddPointsToScore Jump to AddPointsToScore.
41459 SET 0,C
41461 JR 41442
41463 SET 1,C
41465 JR 41442
41467 SET 2,C
41469 JR 41442
Prev: 40987 Up: Map Next: 41471