MapData_02:

dw (Map02_EventData - MapData_02) + wMisMapDataStart
dw (Map02_WarpData - MapData_02) + wMisMapDataStart
dw (Map02_SignData - MapData_02) + wMisMapDataStart
dw (Map02_LoadScript - MapData_02) + wMisMapDataStart
dw NoObjects

db  $0A, $02

db $0A, $09      ; width, height

; tiles

db T_FENCE, T_ROOF, T_ROOF, T_ROOF, T_FLOOR1, T_FLOOR1, T_ROOF, T_ROOF, T_ROOF, T_FENCE
db T_FENCE, T_WINDOW, T_OPENDOOR, T_WINDOW, T_FLOOR1, T_FLOOR1, T_WINDOW, T_OPENDOOR, T_WINDOW, T_FENCE
db T_FENCE, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FENCE
db T_FENCE, T_ROOF, T_ROOF, T_ROOF, T_FLOOR1, T_FLOOR1, T_ROOF, T_ROOF, T_ROOF, T_FENCE
db T_FENCE, T_WINDOW, T_OPENDOOR, T_WINDOW, T_FLOOR1, T_FLOOR1, T_WINDOW, T_OPENDOOR, T_WINDOW, T_FENCE
db T_FENCE, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FLOOR1, T_FENCE
db T_FENCE, T_ROCK, T_ROCK, T_ROCK, T_FLOOR1, T_FLOOR1, T_ROCK, T_ROCK, T_ROCK, T_FENCE
db T_FENCE, T_DIRT, T_DIRT, T_ROCK, T_ROCK, T_ROCK, T_ROCK, T_DIRT, T_DIRT, T_FENCE
db T_FENCE, T_DIRT, T_DIRT, T_DIRT, T_DIRT, T_DIRT, T_DIRT, T_DIRT, T_DIRT, T_FENCE

Map02_EventData:
    db $01
    db $FF, $04
    dw (Map02_Event0 - MapData_02) + wMisMapDataStart

Map02_WarpData:
    db $04
    db $0F, $04,  $03;,  ;$0A, $0A
    db $05, $04,  $04;,  ;$00, $00
    db $05, $0A,  $FF;,  ;$00, $00
    db $0F, $0A,  $FF;,  ;$00, $00

Map02_SignData:
    db $08

    db $0D, $04
    dw (Map02_WindowDefaultTxt - MapData_02) + wMisMapDataStart
    db $11, $04
    dw (Map02_WindowDefaultTxt - MapData_02) + wMisMapDataStart

    db $03, $04
    dw (Map02_Motion - MapData_02) + wMisMapDataStart
    db $07, $04
    dw (Map02_WindowDefaultTxt - MapData_02) + wMisMapDataStart

    db $03, $0A
    dw (Map02_Motion - MapData_02) + wMisMapDataStart
    db $07, $0A
    dw (Map02_Motion - MapData_02) + wMisMapDataStart

    db $0D, $0A
    dw (Map02_WindowDefaultTxt - MapData_02) + wMisMapDataStart
    db $11, $0A
    dw (Map02_Motion - MapData_02) + wMisMapDataStart

Map02_Event0:
    ld a, [wEventFlagGeneric]
    or a
    ret nz
    inc a
    ld [wEventFlagGeneric], a

    ld a, $FF
    call PlaySound
    
    ld hl, (Txt_DebbieIntro3 - MapData_02) + wMisMapDataStart
    call PrintTextVWF

    jp PlaySong_M1

Map02_LoadScript:
    ld a, $02
    ld [wPlayerDir], a
    ret

Txt_DebbieIntro3:
    text "choose wrong and misfortune"
    next "will befall your loved ones."
    next ""
    next "are you ready to play?"
    wait

Map02_WindowDefaultTxt
    text "looked through the window..."

Map02_Nothing:
    para "you can't see anything."
    wait

Map02_Motion
    text "looked through the window..."
    para "something's moving inside."
    wait
    
    