Rules changes

Implement Big Magic/Chicken/Fairy spawn items
This commit is contained in:
aerinon
2022-10-03 16:12:05 -06:00
parent b71c7aa2b4
commit a5fc4dd7a6
5 changed files with 82 additions and 79 deletions

View File

@@ -312,11 +312,15 @@ class RoomHeader:
self.room_id = room_id
# todo: the rest of the header
self.sprite_sheet = byte_array[3]
self.byte_0 = byte_array[0] # bg2, collision, lights out
self.sprite_sheet = byte_array[3] # sprite gfx #
self.effect = byte_array[4]
def write_to_rom(self, rom, base_address):
room_offest = self.room_id*14
rom.write_byte(base_address + room_offest + 0, self.byte_0)
rom.write_byte(base_address + room_offest + 3, self.sprite_sheet)
rom.write_byte(base_address + room_offest + 4, self.effect)
def init_room_headers():