Created
December 15, 2023 01:25
-
-
Save ultraviolet-jordan/9c8bc91e4c722cbfe949541f99c4c6f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[oploc1,_door_left_closed] | |
def_coord $opposite = ~movecoord_loc_return(~door_close(loc_angle)); | |
sound_synth(door_open, 0, 0); | |
loc_del(500); | |
loc_add(~movecoord_loc_return(~door_open(loc_angle)), loc_param(next_loc_stage), calc((loc_angle + 3) % 4), wall_straight, 500); | |
loc_findallzone($opposite); | |
while (loc_findnext = true) { | |
if (loc_coord = $opposite & loc_category = door_right_closed) { | |
loc_del(500); | |
loc_add(~movecoord_loc_return(~door_open(loc_angle)), loc_param(next_loc_stage), calc((loc_angle + 1) % 4), wall_straight, 500); | |
return; | |
} | |
} | |
[oploc1,_door_right_closed] | |
def_coord $opposite = ~movecoord_loc_return(~multiply2(~door_close(loc_angle), -1)); | |
sound_synth(door_open, 0, 0); | |
loc_del(500); | |
loc_add(~movecoord_loc_return(~door_open(loc_angle)), loc_param(next_loc_stage), calc((loc_angle + 1) % 4), wall_straight, 500); | |
loc_findallzone($opposite); | |
while (loc_findnext = true) { | |
if (loc_coord = $opposite & loc_category = door_left_closed) { | |
loc_del(500); | |
loc_add(~movecoord_loc_return(~door_open(loc_angle)), loc_param(next_loc_stage), calc((loc_angle + 3) % 4), wall_straight, 500); | |
return; | |
} | |
} | |
[oploc1,_door_left_opened] | |
def_coord $opposite = ~movecoord_loc_return(~multiply2(~door_open(loc_angle), -1)); | |
sound_synth(door_close, 0, 0); | |
loc_del(500); | |
loc_add(~movecoord_loc_return(~multiply2(~door_close(loc_angle), -1)), loc_param(next_loc_stage), calc((loc_angle + 1) % 4), wall_straight, 500); | |
loc_findallzone($opposite); | |
while (loc_findnext = true) { | |
if (loc_coord = $opposite & loc_category = door_right_opened) { | |
loc_del(500); | |
loc_add(~movecoord_loc_return(~door_close(loc_angle)), loc_param(next_loc_stage), calc((loc_angle + 3) % 4), wall_straight, 500); | |
return; | |
} | |
} | |
[oploc1,_door_right_opened] | |
def_coord $opposite = ~movecoord_loc_return(~multiply2(~door_open(loc_angle), -1)); | |
sound_synth(door_close, 0, 0); | |
loc_del(500); | |
loc_add(~movecoord_loc_return(~door_close(loc_angle)), loc_param(next_loc_stage), calc((loc_angle + 3) % 4), wall_straight, 500); | |
loc_findallzone($opposite); | |
while (loc_findnext = true) { | |
if (loc_coord = $opposite & loc_category = door_left_opened) { | |
loc_del(500); | |
loc_add(~movecoord_loc_return(~multiply2(~door_close(loc_angle), -1)), loc_param(next_loc_stage), calc((loc_angle + 1) % 4), wall_straight, 500); | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment