If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!

HeroQuest (ZX Spectrum)

From The Cutting Room Floor
(Redirected from Hero Quest (ZX Spectrum))
Jump to navigation Jump to search

Title Screen

Hero Quest

Developer: Games Workshop
Publisher: Gremlin Graphics
Platform: ZX Spectrum
Released in EU: 1991


SourceIcon.png This game has uncompiled source code.


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