# Couch co-op across the prologue's last stretch (the full run's segment 5, tests/port/full_run/05_blooper.txt,
# played with three more players): from Frankly's house (gor_02, story 19) down to the sewers, the Blooper fought
# by four, its islands, and up the pipe to Petal Meadows (hei_00, story 23). Players 2-4 join with Start, walk and
# hop their characters, a controller drops out and comes back, player 4 leaves and joins again, player 1 opens the
# Start menu while the others press theirs, and after each step every character must be settled (where coop).
wait_seq 2 3000
press_until_control a 3000
# the joins: Start on three controllers, one after another (2P the partner, Goombella; 3P and 4P companions)
pad 2 start
wait 90
pad 3 start
wait 90
pad 4 start
wait 150
where coop 180
# each walks and hops their own (2P: Goombella's hop, the one that once stayed stuck)
pad 2 right 40
pad 3 left 40
wait 50
pad 2 a
pad 4 a
wait 6
pad 2 a
wait 90
where coop 180
pad 3 l
wait 90
where coop 180
walk_to A_ie_02_doa02 stop 600  # Frankly's door, from inside
hold down 8                     # facing it
pad 2 a
press a                         # out: his lesson on badges, declined (story 20)
press_until_story a 20 6000
press_until_control a 6000
wait 30
where coop 180
# player 1's Start menu, the others' Start meanwhile ("1P has the menu"), then closed
press start
wait 60
pad 2 start
wait 40
pad 3 start
wait 40
press b
wait 60
press_until_control b 600
where coop 180
walk_to -250 200 900            # to the gap in the fence (x -300..-200)
walk_to -250 345 600            # through it, south of Frankly's
walk_to -232 340 300
hold a+right 6                  # jump east onto the pipe (-190 329; it stands 30 high)
stick 100 26 14
wait 20
walk_to -190 329 120            # the middle of the pipe
hold down 30                    # down the pipe
press_until_map a tik_01 900
press_until_control a 3000
where coop 180
# a controller drops out for a few seconds (3P), its seat kept, and comes back
unplug 3 150
pad 2 a
wait 220
where coop 180
walk_to -330 0 300              # off the pipe, south
walk_to 0 0 900                 # east, through the pit
walk_to 20 0 600                # up its east ramp
walk_to 60 0 300                # the east floor (y 75)
walk_to 200 100 600             # west of the plane panel (a_hikou1, 200..300, z 50..150)
walk_to 250 100 200             # on it, facing east
wait 20
press y                         # Plane Mode: a glide east over the channel
wait 60
hold left 30                    # four nose-up pulses carry it over the channel
wait 30
hold left 30
wait 30
hold left 30
wait 30
hold left 30
wait 30
wait 90
where
walk_to e_bero_1 900            # tik_02
press_until_control a 3000
where coop 180
# player 4 leaves (the controller gone for good: the seat frees), then plugs back in and joins again
unplug 4
wait 260
plug 4
wait 30
pad 4 start
wait 120
where coop 180
walk_to -490 0 600              # up to the tentacle across the walkway (-444 0 0)
where
press b                         # the hammer on it: the Blooper rises
pad 2 a
press_until_story a 21 30000    # the fight, four players, and the floating islands come up (story 21)
press_until_control a 6000
wait 60
where coop 180
walk_to -415 0 300              # the walkway's east edge
wait_hit a_ugo_yuka_1 x <= -305 # the first island at its west end (centre -308..-275)
stick 127 0 18 a                # a running jump onto it
wait 30
where
wait_hit a_ugo_yuka_1 x >= -277 # carried to its east end, beside the second island at its west end
walk_to -240 0 90
stick 127 0 18 a                # onto the second island
wait 30
where
wait_hit a_ugo_yuka_2 x >= -96  # carried east (centre -131..-94)
walk_to -55 0 90
stick 127 0 22 a                # over to the ledge west of the pipe
wait 30
walk_to 30 0 90
stick 127 0 10 a                # jump east onto the pipe (55..95, top y 30)
stick 127 0 4
wait 15
walk_to 75 0 60                 # its middle
where
hold down 40                    # down: Petal Meadows (hei_00)
press_until_map a hei_00 3600   # by the Chapter 1 title (sys_01)
press_until_story a 23 6000
press_until_control a 6000
wait 60
where coop 180
save
end
