Created
July 28, 2021 05:45
-
-
Save bleroy/a826e3aea5f69956f5a674addeff5315 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
const l0 = party.peek([0, -1]); | |
const r0 = party.peek([0, 1]); | |
const l1 = party.peek([-1, -1]); | |
const f1 = party.peek([-1, 0]); | |
const r1 = party.peek([-1, 1]); | |
const l2 = party.peek([-2, -1]); | |
const f2 = party.peek([-2, 0]); | |
const r2 = party.peek([-2, 1]); | |
const ll3 = party.peek([-3, -2]); | |
const rr3 = party.peek([-3, 2]); | |
const l3 = party.peek([-3, -1]); | |
const f3 = party.peek([-3, 0]); | |
const r3 = party.peek([-3, 1]); | |
setVisibility(viewport, 'l0', l0.blocks); | |
setVisibility(viewport, 'r0', r0.blocks); | |
setVisibility(viewport, 'fl1', l1.blocks); | |
setVisibility(viewport, 'ff1', f1.blocks); | |
setVisibility(viewport, 'fr1', r1.blocks); | |
setVisibility(viewport, 'l1', l1.blocks); | |
setVisibility(viewport, 'r1', r1.blocks); | |
setVisibility(viewport, 'fl2', l2.blocks); | |
setVisibility(viewport, 'ff2', f2.blocks); | |
setVisibility(viewport, 'fr2', r2.blocks); | |
setVisibility(viewport, 'l2', l2.blocks); | |
setVisibility(viewport, 'r2', r2.blocks); | |
setVisibility(viewport, 'fl3', l3.blocks); | |
setVisibility(viewport, 'ff3', f3.blocks); | |
setVisibility(viewport, 'fr3', r3.blocks); | |
setVisibility(viewport, 'l3', l3.blocks); | |
setVisibility(viewport, 'r3', r3.blocks); | |
setVisibility(viewport, 'll3', ll3.blocks); | |
setVisibility(viewport, 'rr3', rr3.blocks); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment