|
|
This page contains no introduction. |
Source Code Fragment#
In the .tap dump of the 128K version, a fragment of code can be seen at 2240:
_graf)
cp skeleton
jr z,$undead
cp zombie
jr z,$undead
cp mummy
jr z,$undead
ld a,3
ld (play_attack),a
ret
$undead ld a,4
ld (play_attack),a
ret
$found dec b
ld c,b
ld b,0
ld hl,weapon_stat
add hl,bc
ld c,a
ld a,(h
and 00000011b
ret z
b,0
add hl,bc
ld c,(hl)
ret
dice ld c,3
ld a,r
ld b,a
rr b
$loop dec c
jr nz,$over
ld c,6
$over djnz $loop
dec c
ret
clear_sprite
ld hl,s_barbarian ;sprite_1 ;clear sprite area
ld de,s_barbarian+1 ;prite_1+1
ld bc,n