shithub: pokecrystal

ref: 01d6e6c75843fdc0035499ce0214c19be74a9bda
dir: /engine/tilesets/mapgroup_roofs.asm/

View raw version
LoadMapGroupRoof::
	ld a, [wMapGroup]
	ld e, a
	ld d, 0
	ld hl, MapGroupRoofs
	add hl, de
	ld a, [hl]
	cp -1
	ret z
	ld hl, Roofs
	ld bc, 9 tiles
	call AddNTimes
	ld de, vTiles2 tile $0a
	ld bc, 9 tiles
	call CopyBytes
	ret

INCLUDE "data/maps/roofs.asm"