Développement précocePré-1.0 : la syntaxe peut évoluer.Historique des versionsGitHub
Aventure de plateformes Pixel 3D

Skybound 2

Envolez-vous avec Nix, un papillon-lanterne, à travers sept mondes célestes. Écrasez 45 créatures, explorez des îles cachées et affrontez deux boss pour ramener l’aube.

Choisissez une destination dans l’Atlas des Lanternes, puis appuyez sur Entrée. Maintenez le saut pendant la chute pour planer. Ouvrez le jeu complet pour plus d’espace.

Ouvrir le jeu complet dans un nouvel onglet
Skybound 2

Chargement du jeu…

Licence du jeu

Voir le code source
skybound_2.rune
#!RUNE
import "assets.rune"
import "hud.rune"
import "sound.rune"
import "campaign.rune"
import "levels.rune"
import "movement.rune"
import "enemies.rune"
import "bosses.rune"
import "ux.rune"
import "controls.rune"
import "shell.rune"

@App
name = Skybound 2 - Beyond the Concept
type = pixel-3d
runtime = hybrid
scene = beyond
resolution = [432,270]
tick_rate = 30
port = 3024
shell = beyond_cabinet

@Perspective/beyond
fov = 78

@Scene/beyond
logic = beyond
map = atlas
world = world
camera = camera
perspective = beyond
things = ["avatar","seeds","enemies","scenery","goal","boss","hazards"]
controls = beyond
ui = ui
pause_ui = pause_ui
restart_action = show_map
click_to_start = false
mouse_look = false
persistence = {"key":"skybound-2","state":"saga"}
presentation = {
    "defeat": "EVEN MOTHS NEED ANOTHER TRY",
    "instructions": [
        "WASD MOVE / SPACE JUMP",
        "HOLD SPACE WHILE FALLING TO GLIDE",
        "SHIFT RUN / Q E CAMERA / R CENTER",
        "P PAUSE / B RETURN TO ATLAS"
    ],
    "objective": "RESTORE THE SEVEN SKY LANTERNS",
    "subtitle": "BEYOND THE CONCEPT",
    "title": "SKYBOUND 2",
    "victory": "THE SKY REMEMBERS YOUR LIGHT"
}

@Map/atlas
floor = "#142f47"
sky = {"seed":2701,"zenith":"#142d48","horizon":"#769ca8","cloud":"#b2c6c1","speed":0.1}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Map/reedwake
floor = "#84adb2"
sky = {"seed":2702,"zenith":"#426c91","horizon":"#d5d9b4","cloud":"#f1e8c7","speed":0.16}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Map/kiln
floor = "#bb856d"
sky = {"seed":2703,"zenith":"#654b74","horizon":"#e8aa7e","cloud":"#edc7a4","speed":0.22}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Map/tide
floor = "#545b8f"
sky = {"seed":2704,"zenith":"#252d5b","horizon":"#9ba9cf","cloud":"#c2c3e3","speed":0.12}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Map/storm
floor = "#586676"
sky = {"seed":2705,"zenith":"#17283f","horizon":"#6c8a9d","cloud":"#b2c1c5","speed":0.6}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Page/beyond
logic = beyond
view:
    canvas data-rune-pixel-3d=true

@Map/canopy
floor = "#9bc5a1"
sky = {"seed":2706,"zenith":"#204953","horizon":"#9bc5a1","cloud":"#d6dfbc","speed":0.13}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Map/aurora
floor = "#b8e1d8"
sky = {"seed":2707,"zenith":"#29445e","horizon":"#b8e1d8","cloud":"#e6f5d9","speed":0.2}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Map/emberglass
floor = "#d89fa0"
sky = {"seed":2708,"zenith":"#563e66","horizon":"#d89fa0","cloud":"#f0c0a1","speed":0.25}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."
assets.rune
@Palette/beyond
colors = {
    "G": "#527956",
    "L": "#788a9b",
    "P": "#756a99",
    "S": "#dfe3e0",
    "a": "#a8dfe2",
    "b": "#695d6e",
    "c": "#53dbc4",
    "d": "#30495d",
    "e": "#bd809c",
    "f": "#e89a71",
    "g": "#6c9f80",
    "h": "#a3c393",
    "i": "#e7f5eb",
    "j": "#a6fff0",
    "k": "#172b3d",
    "l": "#cedcf2",
    "m": "#665270",
    "n": "#1d4247",
    "o": "#c98c53",
    "p": "#aa9bd0",
    "q": "#86b4a5",
    "r": "#fa7667",
    "s": "#e4b588",
    "t": "#2d817a",
    "u": "#fffbe7",
    "v": "#395f52",
    "w": "#fff0ce",
    "x": "#438e99",
    "y": "#ffd574",
    "z": "#8a603f"
}

@Palette/beyond_moss
colors = {"b":"#679577","s":"#4d7d64","h":"#9fba85","d":"#395f51","a":"#bdc99b"}

@Texture/beyond/moss
palette = beyond_moss
size = [16,16]
pixels:
    "bbhbbbbbbsbbbbbb"
    "bbbbbbbhbbhbbbbb"
    "bbhbbbbbbbshbbbb"
    "bbshbbbbbsbsbbbb"
    "ssssbbbbbbbbbbbb"
    "bbbbbhbbbbbbbbbb"
    "bbbbbbbbbbbbbbsb"
    "ssssbbbbbbbbbbbb"
    "bbbbssssbbbbbbbb"
    "bbbbbbhbbbbbbhbb"
    "bbbbbbshbbbbsbbb"
    "bbbbbsbsbbsbbhbb"
    "bbbbsbbbbbbbsbhb"
    "bbbbbbbbbbbbsbsb"
    "bbbbbbbbsbbbbbbb"
    "bbbsbbbbbbbbbbbb"

@Palette/beyond_stone
colors = {"b":"#465a64","s":"#334550","h":"#70818a","d":"#283944","a":"#a0a795"}

@Texture/beyond/stone
palette = beyond_stone
size = [16,16]
pixels:
    "dddddddddddddddd"
    "dhhhhhhhhhhhhhhh"
    "dbbsbbbbsbbbbsbb"
    "dbbbbbbbbbbhbbbb"
    "dbbbbbbbbbbbbbbb"
    "dbbbbbbbbbbbbbbb"
    "dsbbbbbbbsbbbbbb"
    "dsssssssssssssss"
    "dddddddddddddddd"
    "hhhhhhhhdhhhhhhh"
    "sbbbbbbbdbbbbbbb"
    "bbbbbbbbdbbsbbbb"
    "bbbbbbshdbbbbbbb"
    "bbbbbbbbdbbbbbbb"
    "bbbbbbhbdbbbbbbb"
    "ssssssssdsssssss"

@Palette/beyond_kiln
colors = {"b":"#c89666","s":"#a96d4e","h":"#e5b67d","d":"#794d44","a":"#f4cf8b"}

@Texture/beyond/kiln
palette = beyond_kiln
size = [16,16]
pixels:
    "ssssssssssssssss"
    "shhhhhhhshhhhhhh"
    "shbbbbbbshbdbbbb"
    "shbbbbbbshdbbbbb"
    "shsbbbbbshddbbbb"
    "shbbbhbbshbbdbbb"
    "shbbbbbbshbbdbsb"
    "shbbbbbbshbdbbbb"
    "ssssssssssssssss"
    "shhhhhhhshhhhhhh"
    "shbbbbbbshbbsbbb"
    "shaaabbbshsbbbbb"
    "shbbabbbshbbbbbb"
    "shbbbabbshbbbbbb"
    "shbbbbbbshbbbbbb"
    "shbsbbbbshbbbbbb"

@Palette/beyond_tide
colors = {"b":"#9a91c2","s":"#7a76a6","h":"#c2bfdf","d":"#5c628a","a":"#c8e8e8"}

@Texture/beyond/tide
palette = beyond_tide
size = [16,16]
pixels:
    "bbhbbbbbbsbbbbbb"
    "bbbbbbbhbbsbbbbb"
    "bbbbbbbbbbbbbbbb"
    "bbbbbbbbbbbbbbhh"
    "sbsbbbbbbbbhhhss"
    "bbbbbhbbbbhssbbb"
    "bbbbbhhbbasbbbsb"
    "bbbbhsshhabbbbbb"
    "bbbbhbsssbabbbbb"
    "bbhhsbbbbbabbhbb"
    "hhssbbbbbbbaabbb"
    "ssbbbbbbbbsbbabb"
    "bbbbsbbbbbbbbbbb"
    "bbbbbbbbbbbbbbbb"
    "bbbbbbbbsbbbbbbb"
    "bbbsbbbbbbbbbbbb"

@Palette/beyond_storm
colors = {"b":"#405769","s":"#314352","h":"#667d8a","d":"#243542","a":"#a0b8b6"}

@Texture/beyond/storm
palette = beyond_storm
size = [16,16]
pixels:
    "bbbdbbbbbbbbsbbb"
    "bsbbbbbbbbbbbbbb"
    "bbbsbbbbsbbbbsbb"
    "ssssssbbbbbhbbbb"
    "hhhhhhsbbbbbbbbb"
    "bbbbbbhsssssbbbb"
    "bsbbbbhhhhhhsbbb"
    "bbbbbbbbhbbsssss"
    "bbbbbdbbbbsbbbbb"
    "bbbbdbbbbbbabbbb"
    "sbbdbbbbbbbhbbbb"
    "bbbdbbbbbbbsbbbb"
    "bbbbdbshbbbbbbbb"
    "bbbbdbbbbbbbbbbb"
    "bbbbdbhbbbbbbbbb"
    "bbhdbbbbbbbbbbbb"

@Palette/beyond_gold
colors = {"b":"#c29b55","s":"#8e6c43","h":"#ead28a","d":"#654e3a","a":"#8ed5c5"}

@Texture/beyond/gold
palette = beyond_gold
size = [16,16]
pixels:
    "bbhbbbbbbsbbbbbb"
    "bddddddddddddddb"
    "bdhhhhhhhhhhhhdb"
    "bdhbbbbbbbbbbhdb"
    "sdhbbbbbhbbbbhdb"
    "bdhbbhbhbhbbbhdb"
    "bdhbbbhbbbhbbhdb"
    "bdhbbhbbbbhbbhdb"
    "bdhbhbsbabbhbhdb"
    "bdhbbhbbbbhbbhdb"
    "bdhbbbhbbbhbshdb"
    "bdhbbbbhbhsbbhdb"
    "bdhbsbbbhbbbbhdb"
    "bdhhhhhhhhhhhhdb"
    "bddddddddddddddb"
    "bbbsbbbbbbbbbbbb"

@Palette/beyond_canopy
colors = {"b":"#426e58","s":"#355946","h":"#699774","d":"#294b40","a":"#94b49a"}

@Texture/beyond/canopy
palette = beyond_canopy
size = [16,16]
pixels:
    "bbbbbbbbbbbbbbbh"
    "bbbbbbbbbbbbbbhb"
    "bbbbbbsbbbbbbhbb"
    "bbhbbbsbbbbbhsbb"
    "bbbbbbbssbbhbbbb"
    "bbbsbbbbbssbbbbb"
    "bbbbsbbbbhsbhbbb"
    "bbsbssbbhbbsbbbb"
    "sbbsbbssbbbssbbb"
    "sbbbbbhsbbbbbshb"
    "bssbbhbssbbbbbbb"
    "bbbssbbbsbbbsbbb"
    "bbbhsbbbsssbbbbb"
    "bbhbbsbbbbbbbbbb"
    "bhbbbssbbbbbbbbb"
    "bhbbbbbsbbbbbbbb"

@Palette/beyond_aurora
colors = {"b":"#a8d6d8","s":"#82b7c3","h":"#dcece6","d":"#6894ac","a":"#eaf7ed"}

@Texture/beyond/aurora
palette = beyond_aurora
size = [16,16]
pixels:
    "bbbbbbbbbbbbbbbh"
    "bbbbbbbbbhbbbbbb"
    "bbbbbbbbhbbbbbbb"
    "bbhbbbbbhbbbbsbb"
    "bbbbbbbshbbbbbbb"
    "hhbbbhhbhbsbbbbb"
    "bbhhhbbbshbbhbbb"
    "bbsbbbbbsbhbbbbb"
    "bbbsbbbbbsahhbbb"
    "bbbbbbbbbbabshhb"
    "bbbbbbbsbabbbbsb"
    "bbbbbbbbabbbsbbs"
    "sbbbbbbbahbbbbbb"
    "bbbbbbbbabbbbbbb"
    "bbbbbsbbbabbbbbb"
    "bhbbbbbbbabbbbbb"

@Palette/beyond_emberglass
colors = {"b":"#b586a2","s":"#946b8b","h":"#d6adbf","d":"#674e73","a":"#dfbb8f"}

@Texture/beyond/emberglass
palette = beyond_emberglass
size = [16,16]
pixels:
    "sbbbbbbshbbbbbbb"
    "bbbbbbshbbbhbbsb"
    "bbbbbshbbbbbbbbb"
    "bbbbbshbbbbbbbba"
    "bbbbshbbbbbbbaab"
    "bbbsaaaabbbsabbb"
    "bbbshsbbaaaabsbb"
    "bbbshbbbbbbbbbbb"
    "bbbbshbbbbbbsbbb"
    "bbbbshbbbsssbbbb"
    "bbbbsssssbbbssbb"
    "bbbbbshbbbbbbbsb"
    "bbbbbbshbbbbbbbs"
    "bhhhsssshbbbbbbb"
    "bbbbbbbbshbbbbsb"
    "bbbbbbhbbshbbbbb"

@Palette/beyond_soil
colors = {"b":"#7e6956","s":"#625247","h":"#a18b6a","d":"#4e4842","a":"#719273"}

@Texture/beyond/soil
palette = beyond_soil
size = [16,16]
pixels:
    "bbhbbbbbbsbbbbbb"
    "bbbbbbbhbbsbbbbb"
    "bbbbbbbbbbbbbbbb"
    "bbbbbbbbbbbbbbbb"
    "sbsbbdbbbbbbbbbb"
    "bbbbdhbbsbbbbbbb"
    "bbbbdbbbsbbbbbsb"
    "bbbbdbbsbbbbsbbb"
    "bbbdbbssbbbbsbbb"
    "bbbdbssbbbbbbsbb"
    "bbbbsbbbbbbbsbbb"
    "bbbbdbbbbbsbsbbb"
    "bbbbdbbbbbbsbbbb"
    "aahadaahaaashaaa"
    "ahadaahaaaahsaaa"
    "haadahaaaahasaah"

@Palette/beyond_kiln_wall
colors = {"b":"#936448","s":"#704c40","h":"#bf875b","d":"#503d38","a":"#e0a36a"}

@Texture/beyond/kiln_wall
palette = beyond_kiln_wall
size = [16,16]
pixels:
    "dddddddddddddddd"
    "dhhhhhhhhhhhhhhh"
    "dbsbbbbsbbbbbbbb"
    "dbbabbbbsbbbbbbb"
    "dsbbaabbbbbbbbbb"
    "dbbbbabbbbbbbbbb"
    "dbbbbaabbbbbbbbb"
    "dssssssassssssss"
    "dddddddddddddddd"
    "hhhhhhhhdhhhhhhh"
    "bbbbbbbbdsbbbbbb"
    "bbbbbbbbdbbbbbbs"
    "bbbbbbbbdbbbbbbs"
    "bbbbbbbbdbbbbbhh"
    "sbbbbbbbdbbbbbbb"
    "ssssssssdsssssss"

@Palette/beyond_moonstone
colors = {"b":"#665f86","s":"#514e70","h":"#9088ac","d":"#3e435c","a":"#b1c7cc"}

@Texture/beyond/moonstone
palette = beyond_moonstone
size = [16,16]
pixels:
    "bbbbbbbbbbbbbbsb"
    "bbbbbbbbbbbbbbbb"
    "bbssssssbbssssbb"
    "ssbhhhbsssbbbbss"
    "hhhbbbhhhbbbbbbb"
    "bbbbbbbbbbbbbbbb"
    "bbbbbbbbbbbbbbbb"
    "bbbsbbsbbbabbbbb"
    "bbsssssbhbasssbb"
    "ssbhhhhsssbabbss"
    "hhhbbbhhhsbabbbb"
    "bbbbbbbbbbabbbbs"
    "bbbbbbbbbbabbbbs"
    "bbbsssbbbbbasshh"
    "sshhhhhssssabbss"
    "hhbbbbbhhbbbabbb"

@Palette/beyond_bark
colors = {"b":"#6b6251","s":"#504c42","h":"#948269","d":"#394239","a":"#7b9970"}

@Texture/beyond/bark
palette = beyond_bark
size = [16,16]
pixels:
    "bbdhbbbdhsbbdhbb"
    "bbdhbbbdhbsbdhbb"
    "bbhbbbdbhbbbhbbb"
    "bdhbbbdhbbbdhbbb"
    "sdhbbbdhbbbdhbbb"
    "bdhbbhdhbbbdhbbb"
    "bbhbbbdbhssbhbsb"
    "bbdhbbbdhsbsdhbb"
    "bbdhbbsdsbbsdhbb"
    "bbdhbbbdsbbsdhbb"
    "bbhbbbdbsbsshbbb"
    "bdhbbbdhbssdhbbb"
    "bdhbsbdhbbbdhbbb"
    "bdhbbbdhbbbdhbbb"
    "bbdhbbbdhbbbdhbb"
    "bbdhbbbdhbbbdhbb"

@Palette/beyond_ice_cliff
colors = {"b":"#7196ad","s":"#54798f","h":"#9fc8d0","d":"#415e78","a":"#cbe7df"}

@Texture/beyond/ice_cliff
palette = beyond_ice_cliff
size = [16,16]
pixels:
    "bbshbbbbshbbbshb"
    "bbshbbbbshbbbshb"
    "bbshbbbsshbbbshb"
    "bshbbbbshbbbshbb"
    "bshbbbbshbbbshbb"
    "bshbbbbshbbbshbb"
    "bshbbbbshbbbshbb"
    "bbshbbsbshbbbshb"
    "bbshbbbbshbbbshb"
    "bbbshbhbbshbbbsh"
    "bbbshbbbbshbbbsh"
    "bbbaaaabbshbbbsh"
    "aaashbbaashbbaaa"
    "bbshbbbbsaaaashh"
    "sbshbbbbshbbbshb"
    "bbshbbbhshbbbshb"

@Palette/beyond_glassbrick
colors = {"b":"#755a74","s":"#59445e","h":"#a07993","d":"#3e364c","a":"#c18a76"}

@Texture/beyond/glassbrick
palette = beyond_glassbrick
size = [16,16]
pixels:
    "dddddddddddddddd"
    "dhhhhhhhhhhhhhhh"
    "dbbbbbbbbbbabbbb"
    "dbbbbbbbbbabbbbb"
    "dbbbbbbbbabbbbbb"
    "dbbbbbbbbbasbbbb"
    "dbbbbsbbbaabbsbb"
    "dsssssssasssssss"
    "dddddddddddddddd"
    "hhhhhhhhdhhhhhhh"
    "bbbbbbbbdbbbbbbb"
    "bbbbbbbbdbbbbbbb"
    "bbbbbbbbdbbbbbbb"
    "bhhhssssdbbbbbbb"
    "bbbbbbbbdbbbbbsb"
    "ssssssssdsssssss"

@Palette/beyond_stormstone
colors = {"b":"#3b4c5a","s":"#293c4c","h":"#647583","d":"#20313f","a":"#91a9ae"}

@Texture/beyond/stormstone
palette = beyond_stormstone
size = [16,16]
pixels:
    "sbbdhbbbbbdhbbbb"
    "bbbdhbbbbbdhbbsb"
    "bbbdhbbbbbdhbbbb"
    "bbbdhbbbbbdhbbbb"
    "bbbdhbbbbbdhbbbb"
    "bbbdhbbbbbdhbbbb"
    "bbbdhsbbbbdhbsbb"
    "bbbdhbbbbbdhbbbb"
    "bbdhbbbbbdhbsbbb"
    "bbdhbbbbbdhsbbbb"
    "bbdhbbbbbdhbabbb"
    "bbdhbbbbbdhbabbb"
    "bbdbhbbbbbhbaabb"
    "bhhdhssssbdabbbb"
    "bbbdhbbbbbdhbbsb"
    "bbbdhbhbbbdhbbbb"

@Model/beyond/nix
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-2,2],"size":[6,4,5],"color":"t"}
    {"from":[-2,-2,7],"size":[4,4,2],"color":"q"}
    {"from":[-1,-3,7],"size":[3,6,2],"color":"w"}
    {"from":[1,-3,9],"size":[4,6,3],"color":"k"}
    {"from":[2,-2,12],"size":[2,4,1],"color":"n"}
    {"from":[4,-3,9],"size":[1,2,2],"color":"o"}
    {"from":[4,1,9],"size":[1,2,2],"color":"o"}
    {"from":[5,-3,9],"size":[1,2,2],"color":"y"}
    {"from":[5,1,9],"size":[1,2,2],"color":"y"}
    {"from":[6,-3,10],"size":[1,1,1],"color":"u"}
    {"from":[6,2,10],"size":[1,1,1],"color":"u"}
    {"from":[2,-4,12],"size":[1,1,3],"color":"d"}
    {"from":[2,3,12],"size":[1,1,3],"color":"d"}
    {"from":[1,-5,15],"size":[2,2,1],"color":"y"}
    {"from":[1,3,15],"size":[2,2,1],"color":"y"}
    {"from":[-6,-2,3],"size":[3,4,4],"color":"o"}
    {"from":[-7,-1,4],"size":[1,2,2],"color":"y"}
    {"from":[-6,-2,5],"size":[1,4,1],"color":"w"}
    {"from":[-4,-2,3],"size":[1,4,4],"color":"y"}
    {"from":[-3,-3,0],"size":[2,1,2],"color":"k"}
    {"from":[-3,2,0],"size":[2,1,2],"color":"k"}
    {"from":[0,-3,0],"size":[2,1,2],"color":"k"}
    {"from":[0,2,0],"size":[2,1,2],"color":"k"}
    {"from":[3,-3,0],"size":[2,1,2],"color":"k"}
    {"from":[3,2,0],"size":[2,1,2],"color":"k"}
    {"from":[-4,-7,6],"size":[6,5,2],"color":"o"}
    {"from":[-4,-8,8],"size":[5,5,1],"color":"w"}
    {"from":[-3,-9,7],"size":[3,2,1],"color":"w"}
    {"from":[-4,-7,9],"size":[3,3,1],"color":"p"}
    {"from":[-3,-6,10],"size":[1,1,1],"color":"y"}
    {"from":[-4,2,6],"size":[6,5,2],"color":"o"}
    {"from":[-4,3,8],"size":[5,5,1],"color":"w"}
    {"from":[-3,7,7],"size":[3,2,1],"color":"w"}
    {"from":[-4,4,9],"size":[3,3,1],"color":"p"}
    {"from":[-3,5,10],"size":[1,1,1],"color":"y"}

@Model/beyond/nix_step
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-2,2],"size":[6,4,5],"color":"t"}
    {"from":[-2,-2,7],"size":[4,4,2],"color":"q"}
    {"from":[-1,-3,7],"size":[3,6,2],"color":"w"}
    {"from":[1,-3,9],"size":[4,6,3],"color":"k"}
    {"from":[2,-2,12],"size":[2,4,1],"color":"n"}
    {"from":[4,-3,9],"size":[1,2,2],"color":"o"}
    {"from":[4,1,9],"size":[1,2,2],"color":"o"}
    {"from":[5,-3,9],"size":[1,2,2],"color":"y"}
    {"from":[5,1,9],"size":[1,2,2],"color":"y"}
    {"from":[6,-3,10],"size":[1,1,1],"color":"u"}
    {"from":[6,2,10],"size":[1,1,1],"color":"u"}
    {"from":[2,-4,12],"size":[1,1,3],"color":"d"}
    {"from":[2,3,12],"size":[1,1,3],"color":"d"}
    {"from":[1,-5,15],"size":[2,2,1],"color":"y"}
    {"from":[1,3,15],"size":[2,2,1],"color":"y"}
    {"from":[-6,-2,3],"size":[3,4,4],"color":"o"}
    {"from":[-7,-1,4],"size":[1,2,2],"color":"y"}
    {"from":[-6,-2,5],"size":[1,4,1],"color":"w"}
    {"from":[-4,-2,3],"size":[1,4,4],"color":"y"}
    {"from":[-4,-3,1],"size":[2,1,2],"color":"k"}
    {"from":[-2,2,0],"size":[2,1,2],"color":"k"}
    {"from":[-1,-3,1],"size":[2,1,2],"color":"k"}
    {"from":[1,2,0],"size":[2,1,2],"color":"k"}
    {"from":[2,-3,1],"size":[2,1,2],"color":"k"}
    {"from":[4,2,0],"size":[2,1,2],"color":"k"}
    {"from":[-4,-7,6],"size":[6,5,2],"color":"o"}
    {"from":[-4,-8,8],"size":[5,5,1],"color":"w"}
    {"from":[-3,-9,7],"size":[3,2,1],"color":"w"}
    {"from":[-4,-7,9],"size":[3,3,1],"color":"p"}
    {"from":[-3,-6,10],"size":[1,1,1],"color":"y"}
    {"from":[-4,2,6],"size":[6,5,2],"color":"o"}
    {"from":[-4,3,8],"size":[5,5,1],"color":"w"}
    {"from":[-3,7,7],"size":[3,2,1],"color":"w"}
    {"from":[-4,4,9],"size":[3,3,1],"color":"p"}
    {"from":[-3,5,10],"size":[1,1,1],"color":"y"}

@Model/beyond/nix_glide
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-2,2],"size":[6,4,5],"color":"t"}
    {"from":[-2,-2,7],"size":[4,4,2],"color":"q"}
    {"from":[-1,-3,7],"size":[3,6,2],"color":"w"}
    {"from":[1,-3,9],"size":[4,6,3],"color":"k"}
    {"from":[2,-2,12],"size":[2,4,1],"color":"n"}
    {"from":[4,-3,9],"size":[1,2,2],"color":"o"}
    {"from":[4,1,9],"size":[1,2,2],"color":"o"}
    {"from":[5,-3,9],"size":[1,2,2],"color":"y"}
    {"from":[5,1,9],"size":[1,2,2],"color":"y"}
    {"from":[6,-3,10],"size":[1,1,1],"color":"u"}
    {"from":[6,2,10],"size":[1,1,1],"color":"u"}
    {"from":[2,-4,12],"size":[1,1,3],"color":"d"}
    {"from":[2,3,12],"size":[1,1,3],"color":"d"}
    {"from":[1,-5,15],"size":[2,2,1],"color":"y"}
    {"from":[1,3,15],"size":[2,2,1],"color":"y"}
    {"from":[-6,-2,3],"size":[3,4,4],"color":"o"}
    {"from":[-7,-1,4],"size":[1,2,2],"color":"y"}
    {"from":[-6,-2,5],"size":[1,4,1],"color":"w"}
    {"from":[-4,-2,3],"size":[1,4,4],"color":"y"}
    {"from":[-3,-3,0],"size":[2,1,2],"color":"k"}
    {"from":[-3,2,0],"size":[2,1,2],"color":"k"}
    {"from":[0,-3,0],"size":[2,1,2],"color":"k"}
    {"from":[0,2,0],"size":[2,1,2],"color":"k"}
    {"from":[3,-3,0],"size":[2,1,2],"color":"k"}
    {"from":[3,2,0],"size":[2,1,2],"color":"k"}
    {"from":[-5,-10,7],"size":[7,8,1],"color":"o"}
    {"from":[-4,-11,8],"size":[6,8,1],"color":"w"}
    {"from":[-3,-12,7],"size":[4,2,1],"color":"w"}
    {"from":[-5,-6,6],"size":[4,3,1],"color":"p"}
    {"from":[-3,-9,9],"size":[3,3,1],"color":"c"}
    {"from":[-2,-8,10],"size":[1,1,1],"color":"y"}
    {"from":[-5,2,7],"size":[7,8,1],"color":"o"}
    {"from":[-4,3,8],"size":[6,8,1],"color":"w"}
    {"from":[-3,10,7],"size":[4,2,1],"color":"w"}
    {"from":[-5,3,6],"size":[4,3,1],"color":"p"}
    {"from":[-3,6,9],"size":[3,3,1],"color":"c"}
    {"from":[-2,7,10],"size":[1,1,1],"color":"y"}

@Model/beyond/seed
palette = beyond
unit = 0.125
blocks:
    {"from":[-1,-2,0],"size":[2,4,4],"color":"o"}
    {"from":[-2,-1,1],"size":[4,2,3],"color":"y"}
    {"from":[-1,-1,4],"size":[2,2,2],"color":"w"}
    {"from":[0,0,6],"size":[1,1,2],"color":"t"}
    {"from":[0,1,7],"size":[1,2,1],"color":"c"}

@Model/beyond/beacon
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-3,0],"size":[6,6,1],"color":"d"}
    {"from":[-2,-2,1],"size":[4,4,2],"color":"o"}
    {"from":[-1,-1,3],"size":[2,2,8],"color":"t"}
    {"from":[-3,-3,11],"size":[6,6,1],"color":"o"}
    {"from":[-2,-2,12],"size":[4,4,4],"color":"y"}
    {"from":[-3,-3,16],"size":[6,6,1],"color":"w"}
    {"from":[-2,-2,17],"size":[4,4,1],"color":"o"}
    {"from":[-3,-3,12],"size":[1,1,4],"color":"d"}
    {"from":[-3,2,12],"size":[1,1,4],"color":"d"}
    {"from":[2,-3,12],"size":[1,1,4],"color":"d"}
    {"from":[2,2,12],"size":[1,1,4],"color":"d"}

@Model/beyond/relic
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-3,0],"size":[6,6,1],"color":"d"}
    {"from":[-2,-2,1],"size":[4,4,2],"color":"o"}
    {"from":[-1,-1,3],"size":[2,2,9],"color":"c"}
    {"from":[-3,-3,5],"size":[6,6,4],"color":"o"}
    {"from":[-2,-2,4],"size":[4,4,6],"color":"y"}
    {"from":[-1,-1,6],"size":[2,2,3],"color":"u"}
    {"from":[-5,-1,6],"size":[2,2,2],"color":"w"}
    {"from":[3,-1,6],"size":[2,2,2],"color":"w"}
    {"from":[-1,-5,6],"size":[2,2,2],"color":"w"}
    {"from":[-1,3,6],"size":[2,2,2],"color":"w"}
    {"from":[-2,-2,11],"size":[4,4,1],"color":"p"}
    {"from":[-1,-1,12],"size":[2,2,1],"color":"w"}

@Model/beyond/reed
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-2,0],"size":[1,1,9],"color":"v"}
    {"from":[-1,1,0],"size":[1,1,13],"color":"t"}
    {"from":[2,0,0],"size":[1,1,16],"color":"g"}
    {"from":[-3,-2,9],"size":[1,1,3],"color":"o"}
    {"from":[-1,1,13],"size":[1,1,3],"color":"y"}
    {"from":[2,0,16],"size":[1,1,2],"color":"w"}
    {"from":[-4,-2,3],"size":[2,1,1],"color":"g"}
    {"from":[-1,1,7],"size":[3,1,1],"color":"q"}
    {"from":[1,0,5],"size":[2,1,1],"color":"q"}

@Model/beyond/crystal
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-3,0],"size":[6,6,1],"color":"d"}
    {"from":[-2,-2,1],"size":[3,3,9],"color":"P"}
    {"from":[-1,-2,2],"size":[2,1,8],"color":"p"}
    {"from":[-1,-1,10],"size":[1,1,2],"color":"l"}
    {"from":[1,0,1],"size":[2,3,5],"color":"x"}
    {"from":[1,0,2],"size":[1,2,5],"color":"c"}
    {"from":[1,1,7],"size":[1,1,1],"color":"w"}
    {"from":[-4,1,1],"size":[2,2,4],"color":"m"}
    {"from":[-4,1,2],"size":[1,1,4],"color":"p"}
    {"from":[-1,-2,5],"size":[2,1,1],"color":"l"}

@Model/beyond/chimney
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-3,0],"size":[6,6,2],"color":"d"}
    {"from":[-2,-2,2],"size":[4,4,10],"color":"b"}
    {"from":[-3,-3,4],"size":[6,6,1],"color":"z"}
    {"from":[-3,-3,10],"size":[6,6,1],"color":"o"}
    {"from":[-3,-3,12],"size":[6,6,2],"color":"o"}
    {"from":[-2,-2,14],"size":[4,4,1],"color":"k"}
    {"from":[-1,-1,14],"size":[2,2,2],"color":"r"}
    {"from":[-1,-3,6],"size":[2,1,3],"color":"k"}
    {"from":[-3,-1,6],"size":[1,2,3],"color":"k"}
    {"from":[-1,-3,7],"size":[2,1,1],"color":"f"}
    {"from":[-3,-1,7],"size":[1,2,1],"color":"f"}

@Model/beyond/kilnback
palette = beyond
unit = 0.125
blocks:
    {"from":[-7,-7,0],"size":[3,3,3],"color":"d"}
    {"from":[-7,4,0],"size":[3,3,3],"color":"d"}
    {"from":[-1,-7,0],"size":[3,3,3],"color":"d"}
    {"from":[-1,4,0],"size":[3,3,3],"color":"d"}
    {"from":[5,-7,0],"size":[3,3,3],"color":"d"}
    {"from":[5,4,0],"size":[3,3,3],"color":"d"}
    {"from":[-8,-6,3],"size":[16,12,3],"color":"z"}
    {"from":[-7,-5,6],"size":[14,10,2],"color":"o"}
    {"from":[6,-4,4],"size":[5,8,5],"color":"k"}
    {"from":[9,-3,7],"size":[2,2,2],"color":"r"}
    {"from":[9,1,7],"size":[2,2,2],"color":"r"}
    {"from":[10,-1,4],"size":[2,2,1],"color":"o"}
    {"from":[-6,-7,5],"size":[4,1,2],"color":"r"}
    {"from":[2,-7,5],"size":[4,1,2],"color":"r"}
    {"from":[-6,6,5],"size":[4,1,2],"color":"r"}
    {"from":[2,6,5],"size":[4,1,2],"color":"r"}
    {"from":[-7,-5,8],"size":[14,10,2],"color":"o"}
    {"from":[-5,-4,10],"size":[10,8,2],"color":"s"}
    {"from":[-3,-3,12],"size":[6,6,1],"color":"w"}
    {"from":[-1,-5,8],"size":[2,10,3],"color":"z"}
    {"from":[-6,-5,9],"size":[1,1,1],"color":"y"}
    {"from":[5,-5,9],"size":[1,1,1],"color":"y"}
    {"from":[-6,4,9],"size":[1,1,1],"color":"y"}
    {"from":[5,4,9],"size":[1,1,1],"color":"y"}

@Model/beyond/kilnback_open
palette = beyond
unit = 0.125
blocks:
    {"from":[-7,-7,0],"size":[3,3,3],"color":"d"}
    {"from":[-7,4,0],"size":[3,3,3],"color":"d"}
    {"from":[-1,-7,0],"size":[3,3,3],"color":"d"}
    {"from":[-1,4,0],"size":[3,3,3],"color":"d"}
    {"from":[5,-7,0],"size":[3,3,3],"color":"d"}
    {"from":[5,4,0],"size":[3,3,3],"color":"d"}
    {"from":[-8,-6,3],"size":[16,12,3],"color":"z"}
    {"from":[-7,-5,6],"size":[14,10,2],"color":"o"}
    {"from":[6,-4,4],"size":[5,8,5],"color":"k"}
    {"from":[9,-3,7],"size":[2,2,2],"color":"y"}
    {"from":[9,1,7],"size":[2,2,2],"color":"y"}
    {"from":[10,-1,4],"size":[2,2,1],"color":"o"}
    {"from":[-6,-7,5],"size":[4,1,2],"color":"y"}
    {"from":[2,-7,5],"size":[4,1,2],"color":"y"}
    {"from":[-6,6,5],"size":[4,1,2],"color":"y"}
    {"from":[2,6,5],"size":[4,1,2],"color":"y"}
    {"from":[-7,-7,8],"size":[14,3,3],"color":"s"}
    {"from":[-6,-7,11],"size":[12,2,1],"color":"w"}
    {"from":[-7,4,8],"size":[14,3,3],"color":"s"}
    {"from":[-6,5,11],"size":[12,2,1],"color":"w"}
    {"from":[-3,-3,8],"size":[6,6,3],"color":"t"}
    {"from":[-2,-2,10],"size":[4,4,2],"color":"c"}
    {"from":[-1,-1,12],"size":[2,2,1],"color":"j"}

@Model/beyond/regent
palette = beyond
unit = 0.125
blocks:
    {"from":[-5,-5,0],"size":[4,3,2],"color":"o"}
    {"from":[1,2,0],"size":[4,3,2],"color":"o"}
    {"from":[-7,-4,3],"size":[13,8,7],"color":"d"}
    {"from":[-5,-5,5],"size":[10,10,5],"color":"L"}
    {"from":[-4,-4,9],"size":[8,8,3],"color":"d"}
    {"from":[5,-3,5],"size":[1,6,3],"color":"w"}
    {"from":[6,-1,4],"size":[1,2,3],"color":"S"}
    {"from":[6,-3,6],"size":[1,1,2],"color":"d"}
    {"from":[6,2,6],"size":[1,1,2],"color":"d"}
    {"from":[-4,-5,13],"size":[9,10,4],"color":"S"}
    {"from":[-3,-4,17],"size":[7,8,1],"color":"w"}
    {"from":[4,-5,14],"size":[2,4,3],"color":"o"}
    {"from":[4,1,14],"size":[2,4,3],"color":"o"}
    {"from":[6,-4,15],"size":[1,2,2],"color":"c"}
    {"from":[6,2,15],"size":[1,2,2],"color":"c"}
    {"from":[7,-4,15],"size":[1,1,1],"color":"k"}
    {"from":[7,3,15],"size":[1,1,1],"color":"k"}
    {"from":[6,-1,13],"size":[3,2,2],"color":"o"}
    {"from":[-2,-6,17],"size":[2,2,3],"color":"y"}
    {"from":[-2,4,17],"size":[2,2,3],"color":"y"}
    {"from":[-4,-14,8],"size":[6,9,2],"color":"P"}
    {"from":[-3,-14,10],"size":[5,6,1],"color":"p"}
    {"from":[-4,-14,7],"size":[3,3,1],"color":"d"}
    {"from":[-4,5,8],"size":[6,9,2],"color":"P"}
    {"from":[-3,8,10],"size":[5,6,1],"color":"p"}
    {"from":[-4,11,7],"size":[3,3,1],"color":"d"}

@Model/beyond/regent_open
palette = beyond
unit = 0.125
blocks:
    {"from":[-5,-5,0],"size":[4,3,2],"color":"o"}
    {"from":[1,2,0],"size":[4,3,2],"color":"o"}
    {"from":[-7,-4,3],"size":[13,8,7],"color":"d"}
    {"from":[-5,-5,5],"size":[10,10,5],"color":"L"}
    {"from":[-4,-4,9],"size":[8,8,3],"color":"d"}
    {"from":[5,-3,5],"size":[1,6,3],"color":"w"}
    {"from":[6,-1,4],"size":[1,2,3],"color":"S"}
    {"from":[6,-3,6],"size":[1,1,2],"color":"d"}
    {"from":[6,2,6],"size":[1,1,2],"color":"d"}
    {"from":[-4,-5,10],"size":[9,10,4],"color":"S"}
    {"from":[-3,-4,14],"size":[7,8,1],"color":"w"}
    {"from":[4,-5,11],"size":[2,4,3],"color":"o"}
    {"from":[4,1,11],"size":[2,4,3],"color":"o"}
    {"from":[6,-4,12],"size":[1,2,2],"color":"y"}
    {"from":[6,2,12],"size":[1,2,2],"color":"y"}
    {"from":[7,-4,12],"size":[1,1,1],"color":"k"}
    {"from":[7,3,12],"size":[1,1,1],"color":"k"}
    {"from":[6,-1,10],"size":[3,2,2],"color":"o"}
    {"from":[-2,-6,14],"size":[2,2,3],"color":"y"}
    {"from":[-2,4,14],"size":[2,2,3],"color":"y"}
    {"from":[-4,-14,4],"size":[6,9,2],"color":"P"}
    {"from":[-3,-14,6],"size":[5,6,1],"color":"p"}
    {"from":[-4,-14,3],"size":[3,3,1],"color":"d"}
    {"from":[-4,5,4],"size":[6,9,2],"color":"P"}
    {"from":[-3,8,6],"size":[5,6,1],"color":"p"}
    {"from":[-4,11,3],"size":[3,3,1],"color":"d"}
    {"from":[-3,-3,15],"size":[6,6,1],"color":"t"}
    {"from":[-2,-2,16],"size":[4,4,1],"color":"c"}

@Model/beyond/node
palette = beyond
unit = 0.125
blocks:
    {"from":[-5,-5,0],"size":[10,10,1],"color":"d"}
    {"from":[-4,-4,1],"size":[8,8,1],"color":"o"}
    {"from":[-3,-3,2],"size":[6,6,1],"color":"w"}
    {"from":[-2,-2,3],"size":[4,4,2],"color":"t"}
    {"from":[-1,-1,5],"size":[2,2,3],"color":"c"}
    {"from":[-1,-1,8],"size":[2,2,1],"color":"y"}

@Model/beyond/lock
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-3,0],"size":[6,6,4],"color":"b"}
    {"from":[-2,-3,1],"size":[4,1,2],"color":"o"}
    {"from":[-2,-2,4],"size":[1,4,3],"color":"o"}
    {"from":[1,-2,4],"size":[1,4,3],"color":"o"}
    {"from":[-2,-2,7],"size":[4,4,1],"color":"y"}
    {"from":[-1,-4,1],"size":[2,1,2],"color":"k"}

@Model/beyond/spark
palette = beyond
unit = 0.125
blocks:
    {"from":[-1,-1,0],"size":[2,2,2],"color":"y"}

@Model/beyond/warning
palette = beyond
unit = 0.125
blocks:
    {"from":[-8,-1,0],"size":[16,2,1],"color":"r"}
    {"from":[-1,-8,0],"size":[2,16,1],"color":"r"}

@Model/beyond/ring
palette = beyond
unit = 0.125
blocks:
    {"from":[7,-1,0],"size":[2,2,1],"color":"r"}
    {"from":[6,2,0],"size":[2,2,1],"color":"r"}
    {"from":[5,5,0],"size":[2,2,1],"color":"r"}
    {"from":[2,6,0],"size":[2,2,1],"color":"r"}
    {"from":[-1,7,0],"size":[2,2,1],"color":"r"}
    {"from":[-4,6,0],"size":[2,2,1],"color":"r"}
    {"from":[-7,5,0],"size":[2,2,1],"color":"r"}
    {"from":[-8,2,0],"size":[2,2,1],"color":"r"}
    {"from":[-9,-1,0],"size":[2,2,1],"color":"r"}
    {"from":[-8,-4,0],"size":[2,2,1],"color":"r"}
    {"from":[-7,-7,0],"size":[2,2,1],"color":"r"}
    {"from":[-4,-8,0],"size":[2,2,1],"color":"r"}
    {"from":[-1,-9,0],"size":[2,2,1],"color":"r"}
    {"from":[2,-8,0],"size":[2,2,1],"color":"r"}
    {"from":[5,-7,0],"size":[2,2,1],"color":"r"}
    {"from":[6,-4,0],"size":[2,2,1],"color":"r"}

@Model/beyond/lantern_tree
palette = beyond
unit = 0.125
blocks:
    {"from":[-2,-2,0],"size":[4,4,15],"color":"z"}
    {"from":[-2,-3,0],"size":[1,1,12],"color":"o"}
    {"from":[-3,-3,0],"size":[6,6,1],"color":"v"}
    {"from":[-6,-1,11],"size":[12,2,2],"color":"z"}
    {"from":[-9,-6,13],"size":[18,12,3],"color":"v"}
    {"from":[-7,-5,16],"size":[14,10,3],"color":"g"}
    {"from":[-5,-4,19],"size":[10,8,2],"color":"h"}
    {"from":[-3,-2,21],"size":[6,4,1],"color":"q"}
    {"from":[5,0,10],"size":[1,1,3],"color":"k"}
    {"from":[4,-1,6],"size":[3,3,1],"color":"o"}
    {"from":[4,-1,7],"size":[3,3,2],"color":"y"}
    {"from":[4,-1,9],"size":[3,3,1],"color":"w"}
    {"from":[-7,-1,11],"size":[1,1,2],"color":"k"}
    {"from":[-8,-2,7],"size":[3,3,1],"color":"t"}
    {"from":[-8,-2,8],"size":[3,3,2],"color":"c"}
    {"from":[-8,-2,10],"size":[3,3,1],"color":"w"}

@Model/beyond/aurora_spire
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-3,0],"size":[6,6,1],"color":"d"}
    {"from":[-2,-2,1],"size":[4,4,2],"color":"x"}
    {"from":[-2,-2,3],"size":[4,4,9],"color":"a"}
    {"from":[-1,-2,4],"size":[2,1,8],"color":"i"}
    {"from":[-1,-1,12],"size":[2,2,4],"color":"l"}
    {"from":[0,-1,16],"size":[1,1,2],"color":"w"}
    {"from":[2,0,2],"size":[2,2,7],"color":"x"}
    {"from":[2,0,3],"size":[1,1,6],"color":"a"}
    {"from":[-2,-3,7],"size":[1,1,2],"color":"c"}

@Model/beyond/relay
palette = beyond
unit = 0.125
blocks:
    {"from":[-4,-4,0],"size":[8,8,1],"color":"d"}
    {"from":[-3,-3,1],"size":[6,6,2],"color":"o"}
    {"from":[-2,-2,3],"size":[4,4,10],"color":"m"}
    {"from":[-1,-3,4],"size":[2,1,8],"color":"e"}
    {"from":[-3,-1,4],"size":[1,2,8],"color":"p"}
    {"from":[-5,-1,12],"size":[10,2,2],"color":"o"}
    {"from":[-1,-5,12],"size":[2,10,2],"color":"p"}
    {"from":[-3,-3,14],"size":[6,6,1],"color":"d"}
    {"from":[-2,-2,15],"size":[4,4,3],"color":"y"}
    {"from":[-1,-1,18],"size":[2,2,1],"color":"w"}
    {"from":[-4,-1,14],"size":[1,2,2],"color":"c"}
    {"from":[3,-1,14],"size":[1,2,2],"color":"c"}

@Model/beyond/grub
palette = beyond
unit = 0.125
blocks:
    {"from":[-4,-3,1],"size":[8,6,3],"color":"t"}
    {"from":[-3,-2,4],"size":[6,4,2],"color":"g"}
    {"from":[-1,-2,5],"size":[2,4,1],"color":"h"}
    {"from":[3,-2,3],"size":[2,4,2],"color":"k"}
    {"from":[5,-2,4],"size":[1,1,1],"color":"y"}
    {"from":[5,1,4],"size":[1,1,1],"color":"y"}
    {"from":[-3,-3,0],"size":[2,1,1],"color":"k"}
    {"from":[-3,2,0],"size":[2,1,1],"color":"k"}
    {"from":[0,-3,0],"size":[2,1,1],"color":"k"}
    {"from":[0,2,0],"size":[2,1,1],"color":"k"}
    {"from":[3,-3,0],"size":[2,1,1],"color":"k"}
    {"from":[3,2,0],"size":[2,1,1],"color":"k"}

@Model/beyond/crab
palette = beyond
unit = 0.125
blocks:
    {"from":[-4,-3,1],"size":[8,6,3],"color":"z"}
    {"from":[-3,-3,4],"size":[6,6,2],"color":"f"}
    {"from":[-2,-2,6],"size":[4,4,1],"color":"w"}
    {"from":[3,-3,3],"size":[2,6,1],"color":"k"}
    {"from":[4,-3,4],"size":[1,1,2],"color":"c"}
    {"from":[4,2,4],"size":[1,1,2],"color":"c"}
    {"from":[1,-5,1],"size":[4,2,2],"color":"o"}
    {"from":[1,3,1],"size":[4,2,2],"color":"o"}
    {"from":[-3,-3,0],"size":[2,1,1],"color":"k"}
    {"from":[-3,2,0],"size":[2,1,1],"color":"k"}
    {"from":[0,-3,0],"size":[2,1,1],"color":"k"}
    {"from":[0,2,0],"size":[2,1,1],"color":"k"}

@Model/beyond/hopper
palette = beyond
unit = 0.125
blocks:
    {"from":[-3,-3,2],"size":[6,6,3],"color":"P"}
    {"from":[-2,-2,5],"size":[4,4,2],"color":"p"}
    {"from":[-1,-1,7],"size":[2,2,1],"color":"l"}
    {"from":[2,-2,3],"size":[2,4,2],"color":"k"}
    {"from":[4,-2,4],"size":[1,1,1],"color":"c"}
    {"from":[4,1,4],"size":[1,1,1],"color":"c"}
    {"from":[-4,-4,0],"size":[3,2,3],"color":"x"}
    {"from":[-4,2,0],"size":[3,2,3],"color":"x"}
    {"from":[0,-3,0],"size":[3,1,2],"color":"d"}
    {"from":[0,2,0],"size":[3,1,2],"color":"d"}

@Model/beyond/squashed
palette = beyond
unit = 0.125
blocks:
    {"from":[-4,-4,0],"size":[8,8,1],"color":"o"}
    {"from":[-3,-3,1],"size":[6,6,1],"color":"h"}
    {"from":[3,-2,1],"size":[2,4,1],"color":"k"}
bosses.rune
@Logic/beyond
action awaken_boss:
    boss_active = true
    if !checkpoint_active:
        call save_checkpoint
    notice = selected == 1
        ? "KILNBACK WAKES! Dodge the charge, then jump on the blue core."
        : "THE TEMPEST REGENT! Jump its red wave. Stomp when the crown lowers."
    notice_ticks = 150
    call boss_telegraph
    call play_score selected == 1 ? "beyond_kiln_boss" : "beyond_storm_boss"

action boss_telegraph:
    boss_phase = "telegraph"
    boss_clock = 0
    boss_aim = {
        "x": clamp(player.x, arena.min_x, arena.max_x),
        "y": clamp(player.y, arena.min_y, arena.max_y)
    }
    boss_origin = {"x": boss.x, "y": boss.y}
    boss.angle = atan2(boss_aim.y - boss.y, boss_aim.x - boss.x)
    hazards = [
        {
            "x": boss_aim.x,
            "y": boss_aim.y,
            "z": boss.z + 0.02,
            "model": "beyond/warning",
            "scale": 0.7
        }
    ]
    if selected == 6:
        hazards = [
            {"x": boss.x, "y": boss.y, "z": boss.z + 0.02, "model": "beyond/ring", "scale": 0.6}
        ]
    sound.play "beyond_warning"

action tick_boss(previous_z):
    boss_clock += 1
    boss_hit_lock = max(0, boss_hit_lock - 1)
    boss.model = selected == 1 ? "beyond/kilnback" : "beyond/regent"
    if boss_phase == "telegraph":
        if boss_clock >= (boss_hp <= 1 ? 28 : 42):
            boss_phase = "attack"
            boss_clock = 0
            ring_radius = 0.5
            hazards = []
    if boss_phase == "attack":
        if selected == 1:
            progress = min(1, boss_clock / 18)
            boss.x = boss_origin.x + (boss_aim.x - boss_origin.x) * progress
            boss.y = boss_origin.y + (boss_aim.y - boss_origin.y) * progress
            if boss_clock >= 18:
                boss_phase = "rest"
                boss_clock = 0
        if selected == 6:
            ring_radius = 0.5 + boss_clock * (boss_hp <= 2 ? 0.23 : 0.18)
            hazards = [
                {
                    "x": boss.x,
                    "y": boss.y,
                    "z": boss.z + 0.03,
                    "model": "beyond/ring",
                    "scale": ring_radius
                }
            ]
            ring_distance = distance(player, boss)
            if abs(ring_distance - ring_radius) < 0.55
                && player.z < boss.z + 0.65
                && invulnerable == 0:
                call lose_heart
            if boss_clock >= 52:
                boss_phase = "rest"
                boss_clock = 0
                hazards = []
    if boss_phase == "rest":
        boss.model = selected == 1 ? "beyond/kilnback_open" : "beyond/regent_open"
        if boss_clock >= 100:
            call boss_telegraph
    if boss_phase == "stagger" && boss_clock >= 36:
        call boss_telegraph
    boss_distance = distance(player, boss)
    if boss_distance < 1.25 && abs(player.z - boss.z) < 2.1:
        if boss_phase == "rest" && boss_hit_lock == 0 && player.vz < 0 && previous_z >= boss.z + 1:
            boss_hp -= 1
            boss_hit_lock = 45
            boss_phase = "stagger"
            boss_clock = 0
            player.vz = 0.36
            sound.play "beyond_stomp"
            notice = boss_hp > 0 ? "A clean hit! Watch for the next attack." : "The lantern is free!"
            notice_ticks = 90
            if boss_hp <= 0:
                boss.visible = false
                call clear_stage
        if boss_phase != "stagger" && invulnerable == 0 && player.z < boss.z + 1.2:
            call lose_heart
campaign.rune
@Logic/beyond
state:
    status = "title"
    phase = "map"
    saga = {
        "unlocked": 1,
        "cleared": [false, false, false, false, false, false, false],
        "best": [0, 0, 0, 0, 0, 0, 0]
    }
    stages = [
        {
            "name": "REEDWAKE REACH",
            "map": "reedwake",
            "subtitle": "The first lantern waits beyond the reeds.",
            "hint": "Stomp grubs! Hold jump to glide or bounce higher.",
            "boss": false
        },
        {
            "name": "THE CINDERWORKS",
            "map": "kiln",
            "subtitle": "A sleeping furnace guards the second light.",
            "hint": "Bait Kilnback's charge. Stomp the open blue core.",
            "boss": true
        },
        {
            "name": "MOONGLASS TIDE",
            "map": "tide",
            "subtitle": "Crystal causeways beneath a lavender moon.",
            "hint": "Climb north, then turn east. Glide the long crossing.",
            "boss": false
        },
        {
            "name": "SUNKEN CANOPY",
            "map": "canopy",
            "subtitle": "Lantern trees rise through a sea of green.",
            "hint": "Climb the treetops, then glide around the eastern boughs.",
            "boss": false
        },
        {
            "name": "AURORA CAUSEWAY",
            "map": "aurora",
            "subtitle": "Follow the northern lights across a staircase of ice.",
            "hint": "Trace the glowing switchbacks. The highest lantern waits south.",
            "boss": false
        },
        {
            "name": "EMBERGLASS RELAY",
            "map": "emberglass",
            "subtitle": "Warm furnaces and cold crystal share the twilight.",
            "hint": "Circle the relay, then climb the final glass towers.",
            "boss": false
        },
        {
            "name": "THE STORM ROOST",
            "map": "storm",
            "subtitle": "The Tempest Regent has swallowed the dawn.",
            "hint": "Jump the red shockwave. Stomp the lowered crown.",
            "boss": true
        }
    ]
    selected = 0
    world = null
    level_map = "atlas"
    player = {"x": 7, "y": 9, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
    avatar = {"x": 7, "y": 9, "z": 3, "angle": 0, "model": "beyond/nix"}
    camera = {"x": 0.5, "y": 6.6, "z": 6.3, "angle": 20, "pitch": -21}
    checkpoint = {"x": 7, "y": 9, "z": 3, "angle": 0}
    checkpoint_active = false
    beacon = {"x": 21, "y": 18, "z": 5}
    goal = {"x": 7, "y": 21, "z": 6, "model": "beyond/relic", "visible": false}
    seeds = []
    enemies = []
    squished = 0
    scenery = []
    hazards = []
    boss = {"x": 24, "y": 17, "z": 5, "model": "beyond/kilnback", "visible": false, "angle": 180}
    boss_active = false
    boss_hp = 0
    boss_max = 3
    boss_phase = "idle"
    boss_clock = 0
    arena = {"min_x": 37.5, "max_x": 44.5, "min_y": 18.5, "max_y": 30.5, "gate_x": 37, "gate_y": 22}
    boss_origin = {"x": 24, "y": 17}
    boss_aim = {"x": 24, "y": 17}
    boss_hit_lock = 0
    ring_radius = 0
    hearts = 4
    collected = 0
    ticks = 0
    yaw = 20
    velocity_x = 0
    velocity_y = 0
    jump_held = false
    map_held = false
    gliding = false
    invulnerable = 0
    notice = ""
    notice_ticks = 0
    music_track = ""
    touch_ready = false
    map_hidden = false
    result_hidden = true
    enter_locked = false
    node_one_locked = false
    node_two_locked = true
    node_three_locked = true
    node_four_locked = true
    node_seven_locked = true
    node_six_locked = true
    node_five_locked = true
    node_one_selected = true
    node_two_selected = false
    node_three_selected = false
    node_four_selected = false
    node_seven_selected = false
    node_six_selected = false
    node_five_selected = false
    stage_name = "REEDWAKE REACH"
    stage_subtitle = ""
    selected_status = ""
    progress_label = "0 / 7 LANTERNS RESTORED"
    seed_label = ""
    outcome_title = ""
    outcome_body = ""
    primary_label = "Enter destination / Enter"
    ui = {"meters": [], "objective": "", "detail": "", "prompt": "", "notice": "", "panel": null}
    pause_ui = {
        "meters": [],
        "objective": "",
        "detail": "",
        "prompt": "",
        "notice": "",
        "panel": null
    }

action initialize:
    # Four-destination saves keep their old finale at the new last destination.
    if saga.cleared.length == 4:
        if saga.best.length != 4:
            saga.best = [0, 0, 0, 0]
        old_final = saga.cleared[3]
        saga.cleared = [
            saga.cleared[0],
            saga.cleared[1],
            saga.cleared[2],
            false,
            false,
            false,
            old_final
        ]
        saga.best = [saga.best[0], saga.best[1], saga.best[2], 0, 0, 0, saga.best[3]]
        if old_final:
            saga.unlocked = 7
    saga.unlocked = clamp(saga.unlocked, 1, 7)
    if saga.cleared.length != 7:
        saga.cleared = [false, false, false, false, false, false, false]
    if saga.best.length != 7:
        saga.best = [0, 0, 0, 0, 0, 0, 0]
    selected = clamp(saga.unlocked - 1, 0, 6)
    selection_found = false
    for index in range(0, stages.length):
        if !selection_found && !saga.cleared[index] && index < saga.unlocked:
            selected = index
            selection_found = true
    call show_map

action play_score(track):
    if music_track != track:
        music.stop
        music.play track
        music_track = track

action show_map:
    music_track = ""
    phase = "map"
    status = "title"
    level_map = "atlas"
    boss_active = false
    boss.visible = false
    hazards = []
    enemies = entity_group()
    seeds = []
    goal.visible = false
    ticks = 0
    call blank_world
    call island 6, 7, 4, 4, 3, 1
    call island 14, 7, 4, 4, 4, 3
    call island 22, 7, 4, 4, 5, 4
    call island 22, 15, 4, 4, 5, 7
    call island 14, 15, 4, 4, 6, 8
    call island 6, 15, 4, 4, 6, 9
    call island 6, 23, 4, 4, 7, 5
    scenery = [
        {"x": 8, "y": 9, "z": 3, "model": "beyond/node"},
        {"x": 16, "y": 9, "z": 4, "model": "beyond/node"},
        {"x": 24, "y": 9, "z": 5, "model": "beyond/node"},
        {"x": 24, "y": 17, "z": 5, "model": "beyond/node"},
        {"x": 16, "y": 17, "z": 6, "model": "beyond/node"},
        {"x": 8, "y": 17, "z": 6, "model": "beyond/node"},
        {"x": 8, "y": 25, "z": 7, "model": "beyond/node"}
    ]
    for index in range(0, stages.length):
        if index >= saga.unlocked:
            scenery[index].model = "beyond/lock"
        if saga.cleared[index]:
            scenery[index].model = "beyond/beacon"
    # Follow the serpentine route across all seven atlas islands.
    for route in range(0, stages.length - 1):
        for dot in range(1, 6):
            fraction = dot / 6
            scenery.push(
                {
                    "x": scenery[route].x + (scenery[route + 1].x - scenery[route].x) * fraction,
                    "y": scenery[route].y + (scenery[route + 1].y - scenery[route].y) * fraction,
                    "z": scenery[route].z + (scenery[route + 1].z - scenery[route].z) * fraction + 0.2,
                    "model": "beyond/spark",
                    "scale": 0.5
                }
            )
    camera = {"x": 0.5, "y": 0.5, "z": 14, "angle": 43, "pitch": -31}
    call select_stage selected
    call play_score "beyond_atlas"
    call refresh_ui

action select_stage(index):
    stop when phase != "map"
    selected = clamp(index, 0, stages.length - 1)
    avatar.x = scenery[selected].x
    avatar.y = scenery[selected].y
    avatar.z = scenery[selected].z+1
    avatar.angle = 30
    avatar.model = "beyond/nix_glide"
    avatar.scale = 0.65
    avatar.visible = true
    call refresh_ui

action next_stage:
    call select_stage (selected + 1) % stages.length

action previous_stage:
    call select_stage (selected + stages.length - 1) % stages.length

action choose_one:
    call select_stage 0

action choose_two:
    call select_stage 1

action choose_three:
    call select_stage 2

action choose_four:
    call select_stage 3

action choose_five:
    call select_stage 4

action choose_six:
    call select_stage 5

action choose_seven:
    call select_stage 6

action start:
    music_track = ""
    entry_phase = phase
    if entry_phase == "map" && selected >= saga.unlocked:
        call play_score "beyond_atlas"
        stop
    if entry_phase == "map" || entry_phase == "failed":
        call enter_stage
    if entry_phase == "result":
        call show_map

action advance:
    stop when phase == "playing"
    call start

action enter_stage:
    stop when selected >= saga.unlocked
    phase = "playing"
    status = "playing"
    level_map = stages[selected].map
    hearts = 4
    collected = 0
    squished = 0
    ticks = 0
    yaw = 20
    velocity_x = 0
    velocity_y = 0
    jump_held = false
    invulnerable = 0
    checkpoint_active = false
    boss_active = false
    boss_phase = "idle"
    boss_clock = 0
    boss_hit_lock = 0
    hazards = []
    gliding = false
    call build_level
    notice = stages[selected].hint
    notice_ticks = 180
    call snap_camera
    call play_score "beyond_"+stages[selected].map
    call refresh_ui

action clear_stage:
    stop when phase != "playing"
    saga.cleared[selected] = true
    saga.best[selected] = max(saga.best[selected], collected)
    saga.unlocked = min(stages.length, max(saga.unlocked, selected + 2))
    phase = "result"
    status = "won"
    boss_active = false
    hazards = []
    music.stop
    music_track = ""
    sound.play "beyond_clear"
    outcome_title = selected == 6 ? "DAWN BELONGS TO EVERYONE" : "A LANTERN REKINDLED"
    outcome_body = selected == 6
        ? "Nix returns the stolen dawn to the archipelago. Revisit any island to gather every amber seed."
        : "Another route opens on the atlas. Your lanterns and best seed counts are saved."
    call refresh_ui

action lose_heart:
    stop when phase != "playing"
    hearts -= 1
    sound.play "beyond_hurt"
    if hearts <= 0:
        phase = "failed"
        status = "gameover"
        music.stop
        music_track = ""
        outcome_title = "EVEN SMALL LIGHTS RETURN"
        outcome_body =
            "Try this destination again. Your restored lanterns and best seed counts are safe."
    player = {
        "x": checkpoint.x,
        "y": checkpoint.y,
        "z": checkpoint.z,
        "angle": checkpoint.angle,
        "pitch": 0,
        "vz": 0
    }
    velocity_x = 0
    velocity_y = 0
    invulnerable = 75
    yaw = checkpoint.angle
    notice = "Back at your beacon. Seeds gathered this attempt are safe."
    notice_ticks = 100
    call snap_camera
controls.rune
@Controls/beyond
keys:
    KeyW -> forward
    ArrowUp -> forward
    KeyS -> back
    ArrowDown -> back
    KeyA -> left
    ArrowLeft -> left
    KeyD -> right
    ArrowRight -> right
    Space -> jump
    ShiftLeft -> run
    ShiftRight -> run
    KeyQ -> orbit_left
    KeyE -> orbit_right
commands:
    Enter -> advance
    KeyP -> host.pause
    KeyF -> host.fullscreen
    KeyM -> host.mute
    KeyR -> center_camera
    KeyB -> show_map
    Digit1 -> choose_one
    Digit2 -> choose_two
    Digit3 -> choose_three
    Digit4 -> choose_four
    Digit5 -> choose_five
    Digit6 -> choose_six
    Digit7 -> choose_seven
    KeyN -> next_stage
    KeyV -> previous_stage
gamepad:
    Axis0 -> {"input":"move_x","deadzone":0.18}
    Axis1 -> {"input":"move_y","invert":true,"deadzone":0.18}
    Axis2 -> {"input":"orbit","deadzone":0.18}
    Button0 -> jump
    Button2 -> run
    Button4 -> orbit_left
    Button5 -> orbit_right
    Button8 -> {"command":"advance"}
    Button9 -> {"command":"host.pause"}
    Button14 -> {"command":"previous_stage"}
    Button15 -> {"command":"next_stage"}
touch = {
    "buttons": [
        {"id":"jump","input":"jump","label":"FLY","offset":[12,16],"size":64},
        {"id":"run","input":"run","label":"RUN","offset":[88,16],"size":48},
        {"id":"orbit_left","input":"orbit_left","label":"CAM <","offset":[72,92],"size":48},
        {"id":"orbit_right","input":"orbit_right","label":"CAM >","offset":[12,92],"size":48},
        {
            "id": "pause",
            "command": "host.pause",
            "label": "II",
            "aria_label": "Pause game",
            "anchor": "top-right",
            "offset": [12,12],
            "size": 44
        }
    ],
    "joystick": {"size":84,"x":"move_x","y":"move_y"},
    "visible": "touch_ready"
}
enemies.rune
@Logic/beyond
# Patrol endpoints are authored on solid ground, away from island edges.
action creature(x, y, z, kind, axis, reach):
    enemies.push(
        {
            "x": x,
            "y": y,
            "z": z,
            "home_x": x,
            "home_y": y,
            "floor": z,
            "kind": kind,
            "axis": axis,
            "reach": reach,
            "direction": 1,
            "clock": enemies.length * 17,
            "speed": kind == "crab" ? 0.055: 0.032,
            "model": "beyond/" + kind,
            "angle": axis == "x" ? 0: 90,
            "visible": true,
            "flat": 0
        }
    )

action tick_enemies(previous_z):
    for enemy in nearby(enemies, player, 32):
        if enemy.visible && enemy.flat > 0:
            enemy.flat -= 1
            if enemy.flat == 0:
                enemy.visible = false
        if enemy.visible && enemy.flat == 0:
            enemy.clock += 1
            if enemy.axis == "x":
                enemy.x = clamp(enemy.x + enemy.direction * enemy.speed, enemy.home_x - enemy.reach, enemy.home_x + enemy.reach)
                if abs(enemy.x - enemy.home_x) >= enemy.reach - 0.000001:
                    enemy.direction = -enemy.direction
                enemy.angle = enemy.direction > 0 ? 0 : 180
            if enemy.axis == "y":
                enemy.y = clamp(enemy.y + enemy.direction * enemy.speed, enemy.home_y - enemy.reach, enemy.home_y + enemy.reach)
                if abs(enemy.y - enemy.home_y) >= enemy.reach - 0.000001:
                    enemy.direction = -enemy.direction
                enemy.angle = enemy.direction > 0 ? 90 : 270
            hop = enemy.clock % 84
            enemy.z = enemy.floor + (enemy.kind == "hopper" && hop < 36 ? sin(hop * 5) * 0.8 : 0)
            enemy_distance = distance(player, enemy)
            if phase == "playing"
                && enemy_distance < 0.82
                && player.z >= enemy.z - 0.25
                && player.z < enemy.z + 0.85:
                if player.vz <= 0 && previous_z > player.z + 0.001 && previous_z >= enemy.z + 0.25:
                    enemy.model = "beyond/squashed"
                    enemy.z = enemy.floor + 0.02
                    enemy.flat = 24
                    player.z = max(player.z, enemy.z + 0.65)
                    player.vz = jump_held ? 0.46 : 0.36
                    squished += 1
                    sound.play "beyond_stomp"
                    notice = "SQUISH! Hold jump for a higher bounce."
                    notice_ticks = 65
                if enemy.flat == 0 && invulnerable == 0:
                    call lose_heart
hud.rune
# HUD artwork is game-owned. Dots are transparent; edit rows and palette colors freely.
@Palette/beyond_hud
colors = {
    "+": "#fff2cf",
    ".": "transparent",
    "b": "#fa7667",
    "d": "#9a7089",
    "k": "#172b3d",
    "r": "#ff7192",
    "s": "#53dbc4",
    "t": "#53dbc4",
    "y": "#ffd174"
}

@Sprite/beyond/hud/heart
palette = beyond_hud
size = [9, 8]
origin = [0,0]
pixels:
    "..kk.kk.."
    ".krrkrrk."
    "kr++rrrrk"
    "krrrrrrrk"
    ".krrrrrk."
    "..krrrk.."
    "...krk..."
    "....k...."

@Sprite/beyond/hud/seed
palette = beyond_hud
size = [9, 10]
origin = [0,0]
pixels:
    ".....kk.."
    "....kssk."
    "...kssk.."
    "..k+ykk.."
    ".k++yyyk."
    "ky+yyyyyk"
    "kyyyyyyyk"
    ".kyyyyyk."
    "..kyyyk.."
    "...kkk..."

@Sprite/beyond/hud/bug
palette = beyond_hud
size = [9, 9]
origin = [0,0]
pixels:
    "..k...k.."
    ".kskkksk."
    ".kktttkk."
    "kst+t+tsk"
    ".ktttttk."
    "kstttttsk"
    ".kktttkk."
    ".kskkksk."
    "..k...k.."

@Sprite/beyond/hud/lantern
palette = beyond_hud
size = [9, 10]
origin = [0,0]
pixels:
    "...kkk..."
    "..kyyyk.."
    ".kykkkyk."
    "kyyyyyyyk"
    "kyk+k+kyk"
    "kyk+++kyk"
    "kyk+++kyk"
    "kyyyyyyyk"
    ".kkyyykk."
    "...kkk..."

@Sprite/beyond/hud/boss
palette = beyond_hud
size = [9, 9]
origin = [0,0]
pixels:
    ".k.....k."
    "kbk...kbk"
    "kbbkkkbbk"
    "kbbbbbbbk"
    "kb++b++bk"
    "kbbbbbbbk"
    ".kbbkbbk."
    "..kbbbk.."
    "...kkk..."

@Sprite/beyond/hud/heart_empty
palette = beyond_hud
size = [9, 8]
origin = [0,0]
pixels:
    "..kk.kk.."
    ".kddkddk."
    "kdkkdkkdk"
    "kdkkkkkdk"
    ".kdkkkdk."
    "..kdkdk.."
    "...kdk..."
    "....k...."
levels.rune
@Logic/beyond
action blank_world:
    world = {
        "width": 48,
        "height": 40,
        "depth": 20,
        "seed": 2702,
        "biome": "meadow",
        "materials": [
            "beyond/moss",
            "beyond/stone",
            "beyond/kiln",
            "beyond/tide",
            "beyond/storm",
            "beyond/gold",
            "beyond/canopy",
            "beyond/aurora",
            "beyond/emberglass",
            "beyond/soil",
            "beyond/kiln_wall",
            "beyond/moonstone",
            "beyond/bark",
            "beyond/ice_cliff",
            "beyond/glassbrick",
            "beyond/stormstone"
        ],
        "cells": [],
        "spawn": player
    }
    world = voxel_world(
        world.width,
        world.height,
        world.depth,
        world.materials,
        {"seed": world.seed, "biome": world.biome, "spawn": world.spawn, "renderDistance": 128}
    )

action island(x, y, width, height, top, material):
    # Match the island's exposed lower course to its surface biome.
    base = material == 1
        ? 10
        : (material == 3 ? 11: (material == 4 ? 12: (material == 7 ? 13: (material == 8 ? 14: (material == 9 ? 15: (material == 5 ? 16: 2))))))
    if width >= 5 && height >= 5 && top >= 4:
        world = voxel_fill(world, [x+1, y+1, top-3], [width-2, height-2, 1], base)
    world = voxel_fill(world, [x, y, top-2], [width, height, 1], base)
    world = voxel_fill(world, [x, y, top-1], [width, height, 1], material)

action seed(x, y, z):
    seeds.push(
        {
            "x": x,
            "y": y,
            "z": z + 0.45,
            "base": z + 0.45,
            "model": "beyond/seed",
            "angle": 0,
            "visible": true
        }
    )

action build_level:
    call blank_world
    seeds = []
    seeds = entity_group(seeds)
    scenery = []
    scenery = entity_group(scenery)
    enemies = entity_group()
    boss.visible = false
    boss_hp = 0
    goal.visible = !stages[selected].boss
    if selected == 0:
        # REEDWAKE REACH: 8 main islands plus a guarded seed detour.
        player = {"x": 7, "y": 9, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
        checkpoint = {"x": 7, "y": 9, "z": 3, "angle": 0}
        yaw = 20
        call island 5, 7, 7, 7, 3, 1
        call island 13, 8, 5, 4, 4, 1
        call island 19, 10, 7, 5, 5, 1
        call island 18, 17, 6, 5, 5, 1
        call island 10, 19, 7, 4, 6, 1
        call island 11, 25, 5, 7, 7, 1
        call island 18, 27, 7, 5, 8, 1
        call island 26, 27, 8, 8, 9, 1
        beacon = {"x": 21, "y": 18, "z": 5}
        goal = {"x": 30, "y": 30, "z": 9, "model": "beyond/relic", "visible": true}
        call seed 8.5, 9, 3
        call seed 10, 9, 3
        call seed 14, 9, 4
        call seed 16, 9, 4
        call seed 21, 11, 5
        call seed 22, 13, 5
        call seed 21, 18.5, 5
        call seed 19, 20, 5
        call seed 14, 20, 6
        call seed 11.5, 21.5, 6
        call seed 13, 26, 7
        call seed 14, 28, 7
        call seed 19, 28, 8
        call seed 22, 30, 8
        call seed 27, 30, 9
        call seed 30, 32, 9
        scenery.push({"x": 6, "y": 12, "z": 3, "model": "beyond/reed"})
        scenery.push({"x": 23, "y": 20, "z": 5, "model": "beyond/reed"})
        scenery.push({"x": 15, "y": 29, "z": 7, "model": "beyond/reed"})
        scenery.push({"x": 31, "y": 33, "z": 9, "model": "beyond/reed"})
        # Irregular landing shelf and optional stepping-stone seed detour.
        call island 18, 21, 3, 3, 5, 1
        call island 8, 16, 3, 3, 4, 1
        call island 4, 19, 3, 3, 5, 1
        call seed 9.5, 17.5, 4
        call seed 5, 20, 5
        call seed 6, 21, 5
        call creature 15.5, 10.4, 4, "grub", "x", 1
        call creature 22.2, 12.8, 5, "grub", "x", 1.3
        call creature 20.5, 21.8, 5, "grub", "y", 0.6
        call creature 13.3, 20.5, 6, "grub", "x", 1.5
        call creature 21, 29.5, 8, "grub", "x", 1.5
        call creature 5.5, 20.5, 5, "grub", "x", 0.5
        scenery.push({"x": 4.4, "y": 21.6, "z": 5, "model": "beyond/reed"})
    if selected == 1:
        # THE CINDERWORKS: 6 main islands plus a guarded seed detour.
        player = {"x": 7, "y": 9, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
        checkpoint = {"x": 7, "y": 9, "z": 3, "angle": 0}
        yaw = 20
        call island 5, 7, 7, 7, 3, 3
        call island 13, 8, 5, 4, 4, 3
        call island 20, 7, 5, 7, 5, 3
        call island 27, 10, 5, 5, 6, 3
        call island 29, 18, 7, 5, 7, 3
        call island 36, 17, 10, 15, 7, 3
        beacon = {"x": 40, "y": 20, "z": 7}
        boss = {"x": 41, "y": 27, "z": 7, "model": "beyond/kilnback", "visible": true, "angle": 180}
        boss_hp = 3
        boss_max = 3
        boss_phase = "idle"
        arena = {
            "min_x": 37.5,
            "max_x": 44.5,
            "min_y": 18.5,
            "max_y": 30.5,
            "gate_x": 37,
            "gate_y": 22
        }
        call seed 8, 9, 3
        call seed 10, 9, 3
        call seed 14, 9, 4
        call seed 15, 11, 4
        call seed 21, 9, 5
        call seed 23, 11, 5
        call seed 28, 11, 6
        call seed 30, 13, 6
        call seed 31, 18, 7
        call seed 32, 21, 7
        call seed 37, 20, 7
        call seed 40, 20, 7
        call seed 44, 23, 7
        call seed 39, 29, 7
        call seed 44, 30, 7
        scenery.push({"x": 20.5, "y": 7.5, "z": 5, "model": "beyond/chimney"})
        scenery.push({"x": 34, "y": 22, "z": 7, "model": "beyond/chimney"})
        scenery.push({"x": 45, "y": 31, "z": 7, "model": "beyond/chimney"})
        scenery.push({"x": 45, "y": 18, "z": 7, "model": "beyond/chimney"})
        # Irregular landing shelf and optional stepping-stone seed detour.
        call island 21, 12, 3, 4, 5, 3
        call island 26, 3, 3, 3, 5, 3
        call island 31, 3, 4, 3, 6, 9
        call seed 27.5, 4.5, 5
        call seed 32, 4.5, 6
        call seed 34, 4.5, 6
        call creature 15.5, 10.6, 4, "crab", "x", 1
        call creature 22.4, 12.4, 5, "crab", "y", 1.5
        call creature 29.5, 12.7, 6, "grub", "x", 1.2
        call creature 32.5, 21, 7, "crab", "x", 1.6
        call creature 27.5, 4.5, 5, "crab", "x", 0.5
        call creature 33, 4.5, 6, "hopper", "x", 0.8
        scenery.push({"x": 31.4, "y": 5.6, "z": 6, "model": "beyond/chimney"})
    if selected == 2:
        # MOONGLASS TIDE: 8 main islands plus a guarded seed detour.
        player = {"x": 8, "y": 24, "z": 3, "angle": 270, "pitch": 0, "vz": 0}
        checkpoint = {"x": 8, "y": 24, "z": 3, "angle": 270}
        yaw = 270
        call island 5, 21, 7, 8, 3, 4
        call island 7, 13, 3, 6, 4, 4
        call island 8, 4, 8, 7, 5, 4
        call island 17, 7, 6, 4, 6, 4
        call island 19, 13, 8, 7, 7, 4
        call island 28, 16, 6, 4, 8, 4
        call island 31, 22, 5, 6, 9, 4
        call island 38, 23, 8, 9, 10, 4
        beacon = {"x": 12, "y": 8, "z": 5}
        goal = {"x": 41, "y": 27, "z": 10, "model": "beyond/relic", "visible": true}
        call seed 8, 24, 3
        call seed 8, 22, 3
        call seed 8, 17, 4
        call seed 9, 14, 4
        call seed 10, 9, 5
        call seed 13, 8, 5
        call seed 19, 8, 6
        call seed 21, 9, 6
        call seed 22, 14, 7
        call seed 24, 17, 7
        call seed 29, 17, 8
        call seed 32, 18, 8
        call seed 33, 23, 9
        call seed 32, 26, 9
        call seed 39, 26, 10
        call seed 42, 29, 10
        scenery.push({"x": 6, "y": 26, "z": 3, "model": "beyond/crystal"})
        scenery.push({"x": 14, "y": 6, "z": 5, "model": "beyond/crystal"})
        scenery.push({"x": 25, "y": 19, "z": 7, "model": "beyond/crystal"})
        scenery.push({"x": 35, "y": 27, "z": 9, "model": "beyond/crystal"})
        scenery.push({"x": 43, "y": 30, "z": 10, "model": "beyond/crystal"})
        # Irregular landing shelf and optional stepping-stone seed detour.
        call island 23, 6, 3, 3, 6, 4
        call island 28, 6, 3, 3, 7, 4
        call island 32, 7, 3, 3, 8, 4
        call seed 29.5, 7.5, 7
        call seed 33, 8, 8
        call seed 34, 8.5, 8
        call creature 8.5, 15.8, 4, "grub", "y", 1.5
        call creature 12, 7, 5, "hopper", "x", 1.5
        call creature 21, 9.2, 6, "grub", "x", 1.5
        call creature 23, 17.5, 7, "hopper", "y", 1.3
        call creature 33.5, 25.3, 9, "hopper", "y", 1.5
        call creature 33.5, 8.5, 8, "hopper", "x", 0.5
        scenery.push({"x": 32.4, "y": 9.6, "z": 8, "model": "beyond/crystal"})
    if selected == 3:
        # SUNKEN CANOPY: 8 main islands plus a guarded seed detour.
        player = {"x": 7, "y": 31, "z": 3, "angle": 270, "pitch": 0, "vz": 0}
        checkpoint = {"x": 7, "y": 31, "z": 3, "angle": 270}
        yaw = 270
        call island 5, 28, 7, 8, 3, 7
        call island 8, 20, 4, 6, 4, 7
        call island 8, 11, 7, 7, 5, 7
        call island 17, 15, 6, 4, 6, 7
        call island 25, 15, 8, 6, 7, 7
        call island 29, 23, 4, 6, 8, 7
        call island 35, 26, 6, 4, 8, 7
        call island 36, 32, 9, 6, 9, 7
        beacon = {"x": 28, "y": 18, "z": 7}
        goal = {"x": 39, "y": 35, "z": 9, "model": "beyond/relic", "visible": true}
        call seed 8, 31, 3
        call seed 8, 29, 3
        call seed 9, 24, 4
        call seed 9, 21, 4
        call seed 11, 16, 5
        call seed 13, 14, 5
        call seed 18, 16, 6
        call seed 21, 17, 6
        call seed 26, 18, 7
        call seed 29, 19, 7
        call seed 30, 24, 8
        call seed 30, 27, 8
        call seed 36, 27, 8
        call seed 39, 28, 8
        call seed 39, 33, 9
        call seed 41, 36, 9
        scenery.push({"x": 5, "y": 34, "z": 3, "model": "beyond/lantern_tree"})
        scenery.push({"x": 9, "y": 17, "z": 5, "model": "beyond/lantern_tree"})
        scenery.push({"x": 22, "y": 18, "z": 6, "model": "beyond/lantern_tree"})
        scenery.push({"x": 26, "y": 20, "z": 7, "model": "beyond/lantern_tree"})
        scenery.push({"x": 40, "y": 29, "z": 8, "model": "beyond/lantern_tree"})
        scenery.push({"x": 42, "y": 37, "z": 9, "model": "beyond/lantern_tree"})
        # Irregular landing shelf and optional stepping-stone seed detour.
        call island 12, 11, 3, 3, 5, 7
        call island 3, 13, 3, 3, 5, 7
        call island 2, 7, 4, 4, 6, 7
        call seed 4.5, 14.5, 5
        call seed 3, 8.5, 6
        call seed 5, 9.5, 6
        call creature 9.6, 22.8, 4, "grub", "y", 1.4
        call creature 11, 14, 5, "hopper", "x", 1.5
        call creature 20.5, 17.5, 6, "grub", "x", 1.4
        call creature 30, 18.7, 7, "hopper", "x", 1.1
        call creature 31.5, 27.5, 8, "grub", "y", 0.5
        call creature 39, 28, 8, "grub", "x", 1.2
        call creature 4, 9, 6, "hopper", "x", 0.9
        scenery.push({"x": 2.4, "y": 10.6, "z": 6, "model": "beyond/lantern_tree"})
    if selected == 4:
        # AURORA CAUSEWAY: 9 main islands plus a guarded seed detour.
        player = {"x": 7, "y": 9, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
        checkpoint = {"x": 7, "y": 9, "z": 3, "angle": 0}
        yaw = 20
        call island 5, 7, 7, 7, 3, 8
        call island 13, 10, 6, 4, 4, 8
        call island 21, 9, 6, 5, 5, 8
        call island 29, 12, 6, 4, 6, 8
        call island 31, 18, 8, 6, 7, 8
        call island 23, 22, 6, 3, 8, 8
        call island 15, 23, 6, 5, 9, 8
        call island 18, 30, 4, 6, 10, 8
        call island 24, 31, 9, 7, 11, 8
        beacon = {"x": 34, "y": 21, "z": 7}
        goal = {"x": 27, "y": 34, "z": 11, "model": "beyond/relic", "visible": true}
        call seed 8, 9, 3
        call seed 10, 10, 3
        call seed 14, 11, 4
        call seed 17, 12, 4
        call seed 22, 11, 5
        call seed 25, 12, 5
        call seed 30, 13, 6
        call seed 33, 14, 6
        call seed 34, 19, 7
        call seed 34, 22, 7
        call seed 27, 23, 8
        call seed 24, 23, 8
        call seed 19, 25, 9
        call seed 16, 25, 9
        call seed 19, 31, 10
        call seed 19, 34, 10
        call seed 25, 34, 11
        call seed 29, 36, 11
        scenery.push({"x": 6, "y": 12, "z": 3, "model": "beyond/aurora_spire"})
        scenery.push({"x": 26, "y": 13, "z": 5, "model": "beyond/aurora_spire"})
        scenery.push({"x": 36, "y": 23, "z": 7, "model": "beyond/aurora_spire"})
        scenery.push({"x": 16, "y": 27, "z": 9, "model": "beyond/aurora_spire"})
        scenery.push({"x": 30, "y": 37, "z": 11, "model": "beyond/aurora_spire"})
        # Irregular landing shelf and optional stepping-stone seed detour.
        call island 33, 23, 4, 3, 7, 8
        call island 26, 3, 3, 3, 6, 8
        call island 31, 3, 3, 3, 7, 8
        call seed 27.5, 4.5, 6
        call seed 32, 4, 7
        call seed 33, 5, 7
        call creature 15.7, 12, 4, "grub", "x", 1.5
        call creature 25.3, 11.5, 5, "hopper", "y", 0.8
        call creature 33.7, 14.5, 6, "hopper", "y", 0.4
        call creature 35.5, 23.5, 7, "grub", "y", 1.1
        call creature 24.5, 23.5, 8, "hopper", "y", 0.3
        call creature 20.5, 34.5, 10, "grub", "y", 0.5
        call creature 32.5, 4.5, 7, "hopper", "x", 0.5
        scenery.push({"x": 31.4, "y": 5.6, "z": 7, "model": "beyond/aurora_spire"})
    if selected == 5:
        # EMBERGLASS RELAY: 8 main islands plus a guarded seed detour.
        player = {"x": 7, "y": 8, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
        checkpoint = {"x": 7, "y": 8, "z": 3, "angle": 0}
        yaw = 20
        call island 5, 6, 7, 7, 3, 9
        call island 13, 8, 6, 4, 4, 3
        call island 21, 10, 6, 4, 5, 9
        call island 23, 16, 8, 6, 6, 3
        call island 15, 20, 6, 4, 7, 9
        call island 7, 22, 6, 4, 8, 3
        call island 10, 28, 4, 6, 9, 9
        call island 16, 30, 10, 8, 10, 9
        beacon = {"x": 26, "y": 19, "z": 6}
        goal = {"x": 20, "y": 33, "z": 10, "model": "beyond/relic", "visible": true}
        call seed 8, 8, 3
        call seed 10, 9, 3
        call seed 14, 9, 4
        call seed 17, 10, 4
        call seed 22, 11, 5
        call seed 25, 12, 5
        call seed 26, 17, 6
        call seed 26, 20, 6
        call seed 20, 21, 7
        call seed 16, 21, 7
        call seed 11, 23, 8
        call seed 8, 24, 8
        call seed 11, 29, 9
        call seed 11, 32, 9
        call seed 17, 33, 10
        call seed 22, 35, 10
        scenery.push({"x": 5.5, "y": 6.5, "z": 3, "model": "beyond/chimney"})
        scenery.push({"x": 18, "y": 11, "z": 4, "model": "beyond/crystal"})
        scenery.push({"x": 28, "y": 21, "z": 6, "model": "beyond/chimney"})
        scenery.push({"x": 12, "y": 25, "z": 8, "model": "beyond/crystal"})
        scenery.push({"x": 23, "y": 36, "z": 10, "model": "beyond/relay"})
        # Irregular landing shelf and optional stepping-stone seed detour.
        call island 25, 20, 3, 4, 6, 3
        call island 30, 9, 3, 3, 6, 9
        call island 35, 8, 4, 4, 7, 3
        call seed 31.5, 10.5, 6
        call seed 36, 9.5, 7
        call seed 38, 10.5, 7
        call creature 15.7, 10.5, 4, "crab", "x", 1.6
        call creature 24, 12, 5, "hopper", "x", 1.2
        call creature 28, 19, 6, "crab", "y", 1.5
        call creature 17, 22, 7, "hopper", "x", 0.7
        call creature 10, 24, 8, "crab", "x", 1.4
        call creature 11.8, 31, 9, "hopper", "y", 1.5
        call creature 37, 10, 7, "crab", "x", 0.9
        scenery.push({"x": 35.4, "y": 11.6, "z": 7, "model": "beyond/relay"})
    if selected == 6:
        # THE STORM ROOST: 7 main islands plus a guarded seed detour.
        player = {"x": 7, "y": 9, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
        checkpoint = {"x": 7, "y": 9, "z": 3, "angle": 0}
        yaw = 20
        call island 5, 7, 7, 7, 3, 5
        call island 13, 9, 5, 4, 4, 5
        call island 20, 10, 7, 4, 5, 5
        call island 24, 16, 4, 5, 6, 5
        call island 30, 19, 6, 3, 7, 5
        call island 38, 18, 7, 4, 8, 5
        call island 32, 24, 14, 14, 8, 5
        beacon = {"x": 41, "y": 25, "z": 8}
        boss = {"x": 39, "y": 31, "z": 8, "model": "beyond/regent", "visible": true, "angle": 270}
        boss_hp = 4
        boss_max = 4
        boss_phase = "idle"
        arena = {
            "min_x": 33.5,
            "max_x": 44.5,
            "min_y": 25.5,
            "max_y": 36.5,
            "gate_x": 33,
            "gate_y": 26.5
        }
        call seed 9, 9, 3
        call seed 14, 10, 4
        call seed 16, 10, 4
        call seed 21, 11, 5
        call seed 24, 12.5, 5
        call seed 25, 17, 6
        call seed 26, 19, 6
        call seed 31, 20, 7
        call seed 34, 20, 7
        call seed 39, 20, 8
        call seed 42, 20, 8
        call seed 41, 25, 8
        call seed 34, 26, 8
        call seed 44, 36, 8
        scenery.push({"x": 5.5, "y": 7.5, "z": 3, "model": "beyond/crystal"})
        scenery.push({"x": 27, "y": 20, "z": 6, "model": "beyond/aurora_spire"})
        scenery.push({"x": 43, "y": 21, "z": 8, "model": "beyond/crystal"})
        scenery.push({"x": 32.5, "y": 24.5, "z": 8, "model": "beyond/crystal"})
        scenery.push({"x": 45, "y": 37, "z": 8, "model": "beyond/aurora_spire"})
        # Irregular landing shelf and optional stepping-stone seed detour.
        call island 24, 12, 3, 3, 5, 5
        call island 16, 16, 3, 3, 5, 5
        call island 15, 22, 4, 4, 6, 5
        call seed 17.5, 17.5, 5
        call seed 16, 23.5, 6
        call seed 18, 24.5, 6
        call creature 15.5, 11, 4, "crab", "x", 1
        call creature 23.5, 12, 5, "hopper", "x", 1.5
        call creature 26, 18.3, 6, "crab", "y", 1.1
        call creature 32.5, 20.5, 7, "hopper", "x", 1.5
        call creature 41, 20, 8, "crab", "x", 1.6
        call creature 17, 24, 6, "hopper", "x", 0.9
        scenery.push({"x": 15.4, "y": 25.6, "z": 6, "model": "beyond/crystal"})
    world.spawn = {
        "x": player.x,
        "y": player.y,
        "z": player.z,
        "angle": player.angle,
        "pitch": 0,
        "vz": 0
    }
    scenery.push({"x": beacon.x, "y": beacon.y, "z": beacon.z, "model": "beyond/beacon"})
movement.rune
@Logic/beyond
action tick(input):
    ticks += 1
    if phase == "map":
        avatar.z = scenery[selected].z+1+sin(ticks*3)*0.15
        avatar.angle = 30 + sin(ticks) * 15
        map_direction = (input.right ? 1 : 0) - (input.left ? 1 : 0)
        if map_direction != 0 && !map_held:
            call select_stage (selected + map_direction + stages.length) % stages.length
        map_held = map_direction != 0
    stop when phase != "playing"
    notice_ticks = max(0, notice_ticks - 1)
    invulnerable = max(0, invulnerable - 1)
    yaw += ((input.orbit_right ? 1 : 0) - (input.orbit_left ? 1 : 0) + (input.orbit ? input.orbit : 0)) * 3
    forward = clamp((input.forward ? 1 : 0) - (input.back ? 1 : 0) + (input.move_y ? input.move_y : 0), -1, 1)
    side =
        clamp((input.right ? 1: 0) - (input.left ? 1: 0) + (input.move_x ? input.move_x: 0), -1, 1)
    magnitude = max(1, sqrt(forward * forward + side * side))
    speed = input.run ? 0.23 : 0.18
    target_x = (cos(yaw) * forward - sin(yaw) * side) * speed / magnitude
    target_y = (sin(yaw) * forward + cos(yaw) * side) * speed / magnitude
    velocity_x += (target_x - velocity_x) * 0.45
    velocity_y += (target_y - velocity_y) * 0.45
    if abs(velocity_x) + abs(velocity_y) > 0.02:
        player.angle = atan2(velocity_y, velocity_x)
    gliding = !!input.jump && player.vz < 0 && player.z > 1.5
    if gliding:
        player.vz = max(-0.07, player.vz)
    previous_z = player.z
    player = voxel_move(
        world,
        player,
        velocity_x,
        velocity_y,
        !!input.jump && !jump_held,
        {"jumpSpeed": 0.44, "gravity": 0.035, "autoStep": false}
    )
    if player.z > previous_z && !!input.jump && !jump_held:
        sound.play "beyond_jump"
    jump_held = !!input.jump
    if player.z < 1.3:
        call lose_heart
    if phase != "playing":
        call refresh_ui
        stop
    call tick_enemies previous_z
    if phase != "playing":
        call refresh_ui
        stop
    for item in seeds:
        item.angle = ticks * 5
        item.z = item.base + sin(ticks * 4) * 0.12
        item_distance = distance(player, item)
        if item.visible && item_distance < 0.75 && abs(player.z + 0.7 - item.z) < 1:
            item.visible = false
            collected += 1
            sound.play "beyond_seed"
    beacon_distance = distance(player, beacon)
    if !checkpoint_active && beacon_distance < 1.5 && abs(player.z - beacon.z) < 0.3:
        call save_checkpoint
    if stages[selected].boss
        && !boss_active
        && boss_hp > 0
        && player.x > arena.gate_x
        && player.y > arena.gate_y
        && player.z >= boss.z:
        call awaken_boss
    if boss_active:
        call tick_boss previous_z
    if goal.visible:
        goal.angle = ticks * 3
        goal_distance = distance(player, goal)
        if goal_distance < 1 && abs(player.z - goal.z) < 0.4:
            call clear_stage
    call update_view
    call refresh_ui

action save_checkpoint:
    checkpoint_active = true
    checkpoint = {"x": beacon.x, "y": beacon.y, "z": beacon.z, "angle": selected == 2 ? 0: 90}
    hearts = 4
    sound.play "beyond_beacon"
    notice = "Beacon lit. Hearts restored."
    notice_ticks = 100

action snap_camera:
    camera = {
        "x": clamp(player.x - cos(yaw) * 7, 0.3, world.width - 0.3),
        "y": clamp(player.y - sin(yaw) * 7, 0.3, world.height - 0.3),
        "z": player.z + 3.3,
        "angle": yaw,
        "pitch": -21
    }
    avatar.scale = 1
    call update_view

action center_camera:
    stop when phase != "playing"
    yaw = player.angle
    call update_view

action update_view:
    avatar.x = player.x
    avatar.y = player.y
    avatar.z = player.z
    avatar.angle = player.angle
    avatar.model = gliding || abs(player.vz) > 0.05
        ? "beyond/nix_glide"
        : (abs(velocity_x) + abs(velocity_y) > 0.02 && ticks % 12 < 6 ? "beyond/nix_step": "beyond/nix")
    avatar.visible = invulnerable == 0 || ticks % 6 < 3
    view_distance = boss_active ? 9 : 7
    camera.x += (clamp(player.x - cos(yaw) * view_distance, 0.3, world.width - 0.3) - camera.x) * 0.3
    camera.y += (clamp(player.y - sin(yaw) * view_distance, 0.3, world.height - 0.3) - camera.y) * 0.3
    camera.z += (player.z + (boss_active ? 4.3 : 3.3) - camera.z) * 0.15
    focus_x = boss_active ? (player.x + boss.x) / 2 : player.x
    focus_y = boss_active ? (player.y + boss.y) / 2 : player.y
    camera.angle = atan2(focus_y - camera.y, focus_x - camera.x)
    camera.pitch = boss_active ? -24 : -21
shell.rune
@Page/beyond_cabinet
title = Skybound 2 - Beyond the Concept
logic = beyond_cabinet
style = beyond_cabinet
view:
    main .cabinet:
        header .masthead:
            div:
                p .eyebrow "A LANTERN-MOTH ODYSSEY / PIXEL 3D"
                h1 "SKYBOUND II"
                p .subtitle "BEYOND THE CONCEPT"
            p .story "The dawn has gone missing. A little moth carries the last light."
        section .game-card:
            div .toolbar:
                span .progress data-pixel-text=progress_label "0 / 7 LANTERNS RESTORED"
                div .buttons:
                    button data-pixel-pause=true "Pause / P"
                    button data-pixel-mute=true "Sound / M"
                    button data-pixel-fullscreen=true "Fullscreen / F"
            div .game-surface:
                canvas data-rune-pixel-3d=true tabindex=0 aria-label="Skybound 2. On the atlas use 1 through 7 to select and Enter to explore. WASD moves Nix, Space jumps, hold Space to glide, Q and E orbit the camera."
                button .fullscreen-exit .atlas-exit data-pixel-hidden=touch_ready data-pixel-fullscreen=true "Exit fullscreen"
                div .pause-menu data-pixel-paused=true data-pixel-menu=true hidden=true:
                    h2 "WINGS AT REST"
                    p "The archipelago can wait."
                    button data-pixel-pause=true "Resume flight / P"
                    button data-pixel-restart=true "Return to atlas / B"
                    button .fullscreen-exit data-pixel-fullscreen=true "Exit fullscreen"
            p .status data-pixel-status=true role=status aria-live=polite "A small light. A wider world."
        section .atlas data-pixel-hidden=map_hidden aria-label="World map destinations":
            div .section-title:
                h2 "THE LANTERN ATLAS"
                p "Seven lights. One connected journey."
            div .route:
                button .destination data-pixel-action=select_stage data-pixel-args="[0]" data-pixel-selected=node_one_selected:
                    span .number "01 / THE AWAKENING"
                    strong "Reedwake Reach"
                    span "Reeds, ruins & a first flight"
                button .destination data-pixel-action=select_stage data-pixel-args="[1]" data-pixel-selected=node_two_selected data-pixel-disabled=node_two_locked:
                    span .number "02 / THE FURNACE"
                    strong "The Cinderworks"
                    span "Boss / Kilnback"
                button .destination data-pixel-action=select_stage data-pixel-args="[2]" data-pixel-selected=node_three_selected data-pixel-disabled=node_three_locked:
                    span .number "03 / THE CROSSING"
                    strong "Moonglass Tide"
                    span "Moonlit crystal causeways"
                button .destination data-pixel-action=select_stage data-pixel-args="[3]" data-pixel-selected=node_four_selected data-pixel-disabled=node_four_locked:
                    span .number "04 / THE TREETOPS"
                    strong "Sunken Canopy"
                    span "Lantern groves & long glides"
                button .destination data-pixel-action=select_stage data-pixel-args="[4]" data-pixel-selected=node_five_selected data-pixel-disabled=node_five_locked:
                    span .number "05 / THE NORTHERN LIGHTS"
                    strong "Aurora Causeway"
                    span "An icy staircase through the sky"
                button .destination data-pixel-action=select_stage data-pixel-args="[5]" data-pixel-selected=node_six_selected data-pixel-disabled=node_six_locked:
                    span .number "06 / THE TWILIGHT RELAY"
                    strong "Emberglass Relay"
                    span "Furnaces, glass & a winding ascent"
                button .destination data-pixel-action=select_stage data-pixel-args="[6]" data-pixel-selected=node_seven_selected data-pixel-disabled=node_seven_locked:
                    span .number "07 / THE STOLEN DAWN"
                    strong "The Storm Roost"
                    span "Boss / The Tempest Regent"
            div .destination-detail:
                div:
                    h3 data-pixel-text=stage_name "REEDWAKE REACH"
                    p data-pixel-text=stage_subtitle "The first lantern waits beyond the reeds."
                    p .stamp data-pixel-text=selected_status "NEW DESTINATION"
                button .primary data-pixel-start=true data-pixel-disabled=enter_locked "Explore destination / Enter"
        section .outcome data-pixel-hidden=result_hidden:
            h2 data-pixel-text=outcome_title "A LANTERN REKINDLED"
            p data-pixel-text=outcome_body "Your next destination is waiting."
            p data-pixel-text=seed_label "Amber seeds"
            button .primary data-pixel-start=true data-pixel-text=primary_label "Return to atlas / Enter"
            button data-pixel-action=show_map "Lantern atlas / B"
        section .guide:
            div .character:
                p .eyebrow "MEET YOUR COURIER"
                h2 "NIX, THE LANTERN MOTH"
                p "Six tiny feet. Two paper wings. One stubborn spark. Nix carries the dawn between islands that have forgotten the sun."
                p "WASD or arrows move. Space jumps; keep it held on the way down to spread your wings and glide. Shift runs. Q / E orbit, R centers."
            div:
                p .eyebrow "LISTEN FOR THE LIGHT"
                h2 "A THEME WORTH HUMMING"
                p "An original adventure score follows Nix across the atlas: warm brass, soft strings, sparkling bells and restless percussion. The same little melody grows with the journey."
                p "Boss tells matter. Dodge Kilnback's marked charge, then stomp its blue core. Jump the Regent's red shockwave and land on its lowered crown."
        footer:
            p "RUNE / PIXEL-3D / SKYBOUND II"
            p "Lanterns and best seed counts save automatically. Keyboard, controller & touch."

@Logic/beyond_cabinet
state:
    label = "Skybound 2"

@Style/beyond_cabinet
rules:
    :root:
        color-scheme = dark
    *:
        box-sizing = border-box
    body:
        margin = 0
        background = #102735
        color = #efe8cd
        font-family = system-ui, sans-serif
    .cabinet:
        max-width = 1180px
        margin = auto
        padding = clamp(16px, 3vw, 40px)
    .masthead:
        display = flex
        align-items = center
        justify-content = space-between
        gap = 24px
        flex-wrap = wrap
        margin-bottom = 24px
    .eyebrow:
        color = #71baad
        font-size = 10px
        font-weight = 800
        letter-spacing = 2px
    h1:
        margin = 6px 0 2px
        font-size = clamp(32px, 6vw, 68px)
        letter-spacing = -2px
        line-height = 1.1
    .subtitle:
        margin = 0
        color = #ffd574
        font-size = 11px
        letter-spacing = 5px
    .story:
        color = #b6c8c6
        max-width = 255px
        line-height = 1.7
        font-size = 14px
    .game-card:
        overflow = hidden
        border = 1px solid #42606c
        border-radius = 14px
        background = #192f40
        box-shadow = 0 16px 50px #08192388
    .toolbar:
        display = flex
        align-items = center
        justify-content = space-between
        flex-wrap = wrap
        gap = 10px
        padding = 10px 14px
    .progress:
        color = #ffd574
        font-size = 11px
        letter-spacing = 1px
        font-weight = 800
    .buttons:
        display = flex
        gap = 6px
        flex-wrap = wrap
    button:
        border = 1px solid #4b6b77
        border-radius = 6px
        background = #243e50
        color = #efe8cd
        padding = 10px 12px
        min-height = 44px
        cursor = pointer
        font = inherit
        font-size = 12px
        font-weight = 700
    button:hover:
        background = #365567
    button:disabled:
        opacity = 0.45
        cursor = default
    button:focus-visible:
        outline = 3px solid #ffd574
        outline-offset = 3px
    .game-surface:
        position = relative
    .fullscreen-exit:
        display = none
    .game-surface:fullscreen .fullscreen-exit, .game-surface.rune-pixel3d-expanded .fullscreen-exit:
        display = inline-block
    .atlas-exit:
        position = absolute
        top = max(12px, env(safe-area-inset-top))
        right = max(12px, env(safe-area-inset-right))
        z-index = 8
    .atlas-exit[hidden]:
        display = none !important
    canvas:
        display = block
        width = 100%
        height = auto
        aspect-ratio = 8 / 5
        image-rendering = pixelated
        touch-action = none
        outline-offset = -3px
    .status:
        text-align = center
        font-size = 11px
        color = #b0c6c9
        padding = 0 10px
    .section-title:
        display = flex
        flex-wrap = wrap
        justify-content = space-between
        align-items = center
        gap = 12px
        margin-top = 30px
    .section-title h2:
        font-size = 13px
        letter-spacing = 2px
    .section-title p:
        color = #a4bfc0
        font-size = 12px
    .route:
        display = grid
        grid-template-columns = repeat(auto-fit, minmax(215px, 1fr))
        gap = 12px
    .destination:
        text-align = left
        padding = 18px
        display = flex
        flex-direction = column
        gap = 10px
        background = #1b3444
    .destination strong:
        font-size = 17px
    .destination span:
        font-size = 11px
        color = #a7c4c5
    .destination .number:
        color = #ffd574
        font-size = 9px
        letter-spacing = 1px
    .destination[aria-pressed=true]:
        border-color = #7dd4bc
        background = #254c50
        box-shadow = inset 0 3px #7dd4bc
    .destination-detail:
        display = flex
        justify-content = space-between
        align-items = center
        flex-wrap = wrap
        gap = 18px
        margin-top = 16px
        border-left = 3px solid #ffd574
        padding = 10px 20px
    .destination-detail h3:
        margin = 0
        font-size = 14px
        letter-spacing = 1px
    .destination-detail p:
        font-size = 12px
        color = #b8cdca
    .destination-detail .stamp:
        color = #81cbb6
        font-size = 10px
        letter-spacing = 1px
    .primary:
        background = #ffd574
        color = #192e43
        border-color = #ffd574
        padding = 14px 22px
        font-size = 13px
    .primary:hover:
        background = #f9efce
    .outcome:
        border = 1px solid #63887d
        background = #203e43
        padding = 24px
        margin-top = 24px
        border-radius = 10px
    .outcome h2:
        color = #ffd574
        font-size = 20px
    .outcome p:
        color = #c5d7cd
        font-size = 14px
        line-height = 1.7
    .guide:
        display = grid
        grid-template-columns = repeat(auto-fit, minmax(250px, 1fr))
        gap = 40px
        margin-top = 40px
    .guide h2:
        font-size = 15px
        letter-spacing = 1px
    .guide p:
        color = #b3c8c6
        line-height = 1.8
        font-size = 13px
    footer:
        display = flex
        justify-content = space-between
        flex-wrap = wrap
        gap = 12px
        border-top = 1px solid #36515e
        margin-top = 30px
        padding-top = 16px
        font-size = 10px
        color = #88aaa9
        letter-spacing = 1px
    .pause-menu:
        position = absolute
        inset = 0
        display = flex
        flex-direction = column
        justify-content = center
        align-items = center
        padding = 20px
        gap = 12px
        background = #132b3cee
        color = #efe8cd
    .pause-menu h2:
        color = #ffd574
    [hidden]:
        display = none !important
sound.rune
# Original Nix leitmotif: a rising fifth, a quick answer, then a singable descent.
# Sections are reusable musical phrases. Arrangement cues repeat whole sections.

@Music/beyond_atlas
type = synth
tempo = 108
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"brass","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8 | A3:8 C4:8 E4:8 E4:8 C4:8 A3:8 C4:8 E4:8",
        "bars": 2,
        "bass": "C3:4 G3:4 C3:4 G3:4 | A2:4 E3:4 A2:4 E3:4",
        "harmony": "[C4,E4,G4]:1 | [A3,C4,E4]:1",
        "lead": "A4:8 B4:8 C5:4 E5:4 G5:4 | F5:8 E5:8 D5:4 B4:4 G4:4"
    },
    "chorus": {
        "arp": "C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8 | A3:8 C4:8 E4:8 E4:8 C4:8 A3:8 C4:8 E4:8 | F3:8 A3:8 C4:8 C4:8 A3:8 F3:8 A3:8 C4:8 | G3:8 B3:8 D4:8 D4:8 B3:8 G3:8 B3:8 D4:8",
        "bars": 4,
        "bass": "C3:4 G3:4 C3:4 G3:4 | A2:4 E3:4 A2:4 E3:4 | F2:4 C3:4 F2:4 C3:4 | G2:4 D3:4 G2:4 D3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[C4,E4,G4]:1 | [A3,C4,E4]:1 | [F3,A3,C4]:1 | [G3,B3,D4]:1",
        "lead": "G5:2 E5:8 D5:8 C5:4 | A5:4 G5:8 E5:8 D5:4 E5:4 | F5:8 E5:8 D5:4 C5:8 D5:8 E5:4 | D5:4 B4:4 C5:2"
    },
    "coda": {
        "arp": "C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8 | A3:8 C4:8 E4:8 E4:8 C4:8 A3:8 C4:8 E4:8",
        "bars": 2,
        "bass": "C3:4 G3:4 C3:4 G3:4 | A2:4 E3:4 A2:4 E3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[C4,E4,G4]:1 | [A3,C4,E4]:1",
        "lead": "C5:8 D5:8 E5:4 G5:4 E5:4 | D5:4 B4:4 C5:2"
    },
    "intro": {
        "arp": "C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8 | A3:8 C4:8 E4:8 E4:8 C4:8 A3:8 C4:8 E4:8",
        "bars": 2,
        "bass": "C3:4 G3:4 C3:4 G3:4 | A2:4 E3:4 A2:4 E3:4",
        "harmony": "[C4,E4,G4]:1 | [A3,C4,E4]:1",
        "lead": "C5:4 G4:4 C5:4 E5:4 | D5:8 E5:8 G5:4 D5:4 G4:4"
    },
    "verse": {
        "arp": "C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8 | A3:8 C4:8 E4:8 E4:8 C4:8 A3:8 C4:8 E4:8 | F3:8 A3:8 C4:8 C4:8 A3:8 F3:8 A3:8 C4:8 | G3:8 B3:8 D4:8 D4:8 B3:8 G3:8 B3:8 D4:8",
        "bars": 4,
        "bass": "C3:4 G3:4 C3:4 G3:4 | A2:4 E3:4 A2:4 E3:4 | F2:4 C3:4 F2:4 C3:4 | G2:4 D3:4 G2:4 D3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[C4,E4,G4]:1 | [A3,C4,E4]:1 | [F3,A3,C4]:1 | [G3,B3,D4]:1",
        "lead": "C5:8 G4:8 A4:4 C5:4 E5:4 | D5:8 E5:8 G5:4 E5:4 D5:4 | C5:8 G4:8 A4:4 C5:8 D5:8 E5:4 | D5:4 B4:4 G4:4 -:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus","coda"]

@Music/beyond_reedwake
type = synth
tempo = 128
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"brass","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "D4:8 F#4:8 A4:8 A4:8 F#4:8 D4:8 F#4:8 A4:8 | B3:8 D4:8 F#4:8 F#4:8 D4:8 B3:8 D4:8 F#4:8",
        "bars": 2,
        "bass": "D3:4 A3:4 D3:4 A3:4 | B2:4 F#3:4 B2:4 F#3:4",
        "harmony": "[D4,F#4,A4]:1 | [B3,D4,F#4]:1",
        "lead": "B4:8 C#5:8 D5:4 F#5:4 A5:4 | G5:8 F#5:8 E5:4 C#5:4 A4:4"
    },
    "chorus": {
        "arp": "D4:8 F#4:8 A4:8 A4:8 F#4:8 D4:8 F#4:8 A4:8 | B3:8 D4:8 F#4:8 F#4:8 D4:8 B3:8 D4:8 F#4:8 | G3:8 B3:8 D4:8 D4:8 B3:8 G3:8 B3:8 D4:8 | A3:8 C#4:8 E4:8 E4:8 C#4:8 A3:8 C#4:8 E4:8",
        "bars": 4,
        "bass": "D3:4 A3:4 D3:4 A3:4 | B2:4 F#3:4 B2:4 F#3:4 | G2:4 D3:4 G2:4 D3:4 | A2:4 E3:4 A2:4 E3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[D4,F#4,A4]:1 | [B3,D4,F#4]:1 | [G3,B3,D4]:1 | [A3,C#4,E4]:1",
        "lead": "A5:2 F#5:8 E5:8 D5:4 | B5:4 A5:8 F#5:8 E5:4 F#5:4 | G5:8 F#5:8 E5:4 D5:8 E5:8 F#5:4 | E5:4 C#5:4 D5:2"
    },
    "coda": {
        "arp": "D4:8 F#4:8 A4:8 A4:8 F#4:8 D4:8 F#4:8 A4:8 | B3:8 D4:8 F#4:8 F#4:8 D4:8 B3:8 D4:8 F#4:8",
        "bars": 2,
        "bass": "D3:4 A3:4 D3:4 A3:4 | B2:4 F#3:4 B2:4 F#3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[D4,F#4,A4]:1 | [B3,D4,F#4]:1",
        "lead": "D5:8 E5:8 F#5:4 A5:4 F#5:4 | E5:4 C#5:4 D5:2"
    },
    "intro": {
        "arp": "D4:8 F#4:8 A4:8 A4:8 F#4:8 D4:8 F#4:8 A4:8 | B3:8 D4:8 F#4:8 F#4:8 D4:8 B3:8 D4:8 F#4:8",
        "bars": 2,
        "bass": "D3:4 A3:4 D3:4 A3:4 | B2:4 F#3:4 B2:4 F#3:4",
        "harmony": "[D4,F#4,A4]:1 | [B3,D4,F#4]:1",
        "lead": "D5:4 A4:4 D5:4 F#5:4 | E5:8 F#5:8 A5:4 E5:4 A4:4"
    },
    "verse": {
        "arp": "D4:8 F#4:8 A4:8 A4:8 F#4:8 D4:8 F#4:8 A4:8 | B3:8 D4:8 F#4:8 F#4:8 D4:8 B3:8 D4:8 F#4:8 | G3:8 B3:8 D4:8 D4:8 B3:8 G3:8 B3:8 D4:8 | A3:8 C#4:8 E4:8 E4:8 C#4:8 A3:8 C#4:8 E4:8",
        "bars": 4,
        "bass": "D3:4 A3:4 D3:4 A3:4 | B2:4 F#3:4 B2:4 F#3:4 | G2:4 D3:4 G2:4 D3:4 | A2:4 E3:4 A2:4 E3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[D4,F#4,A4]:1 | [B3,D4,F#4]:1 | [G3,B3,D4]:1 | [A3,C#4,E4]:1",
        "lead": "D5:8 A4:8 B4:4 D5:4 F#5:4 | E5:8 F#5:8 A5:4 F#5:4 E5:4 | D5:8 A4:8 B4:4 D5:8 E5:8 F#5:4 | E5:4 C#5:4 A4:4 -:4"
    }
}
arrangement = [
    "intro",
    "verse",
    "chorus",
    "verse",
    {"section":"bridge","repeat":2},
    {"section":"chorus","repeat":2},
    "coda"
]

@Music/beyond_kiln
type = synth
tempo = 148
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"brass","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8",
        "bars": 2,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1",
        "lead": "G#4:8 A#4:8 C5:4 D#5:4 G5:4 | F5:8 D#5:8 D5:4 A#4:4 G4:4"
    },
    "chorus": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8 | F3:8 G#3:8 C4:8 C4:8 G#3:8 F3:8 G#3:8 C4:8 | G3:8 A#3:8 D4:8 D4:8 A#3:8 G3:8 A#3:8 D4:8",
        "bars": 4,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4 | F2:4 C3:4 F2:4 C3:4 | G2:4 D3:4 G2:4 D3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1 | [F3,G#3,C4]:1 | [G3,A#3,D4]:1",
        "lead": "G5:2 D#5:8 D5:8 C5:4 | G#5:4 G5:8 D#5:8 D5:4 D#5:4 | F5:8 D#5:8 D5:4 C5:8 D5:8 D#5:4 | D5:4 A#4:4 C5:2"
    },
    "coda": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8",
        "bars": 2,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1",
        "lead": "C5:8 D5:8 D#5:4 G5:4 D#5:4 | D5:4 A#4:4 C5:2"
    },
    "intro": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8",
        "bars": 2,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1",
        "lead": "C5:4 G4:4 C5:4 D#5:4 | D5:8 D#5:8 G5:4 D5:4 G4:4"
    },
    "verse": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8 | F3:8 G#3:8 C4:8 C4:8 G#3:8 F3:8 G#3:8 C4:8 | G3:8 A#3:8 D4:8 D4:8 A#3:8 G3:8 A#3:8 D4:8",
        "bars": 4,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4 | F2:4 C3:4 F2:4 C3:4 | G2:4 D3:4 G2:4 D3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1 | [F3,G#3,C4]:1 | [G3,A#3,D4]:1",
        "lead": "C5:8 G4:8 G#4:4 C5:4 D#5:4 | D5:8 D#5:8 G5:4 D#5:4 D5:4 | C5:8 G4:8 G#4:4 C5:8 D5:8 D#5:4 | D5:4 A#4:4 G4:4 -:4"
    }
}
arrangement = [
    "intro",
    "verse",
    "chorus",
    "verse",
    {"section":"bridge","repeat":2},
    {"section":"chorus","repeat":2},
    "coda"
]

@Music/beyond_tide
type = synth
tempo = 116
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"bell","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "F4:8 A4:8 C5:8 C5:8 A4:8 F4:8 A4:8 C5:8 | D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8",
        "bars": 2,
        "bass": "F3:4 C4:4 F3:4 C4:4 | D3:4 A3:4 D3:4 A3:4",
        "harmony": "[F4,A4,C5]:1 | [D4,F4,A4]:1",
        "lead": "D5:8 E5:8 F5:4 A5:4 C6:4 | A#5:8 A5:8 G5:4 E5:4 C5:4"
    },
    "chorus": {
        "arp": "F4:8 A4:8 C5:8 C5:8 A4:8 F4:8 A4:8 C5:8 | D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | A#3:8 D4:8 F4:8 F4:8 D4:8 A#3:8 D4:8 F4:8 | C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8",
        "bars": 4,
        "bass": "F3:4 C4:4 F3:4 C4:4 | D3:4 A3:4 D3:4 A3:4 | A#2:4 F3:4 A#2:4 F3:4 | C3:4 G3:4 C3:4 G3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[F4,A4,C5]:1 | [D4,F4,A4]:1 | [A#3,D4,F4]:1 | [C4,E4,G4]:1",
        "lead": "C6:2 A5:8 G5:8 F5:4 | D6:4 C6:8 A5:8 G5:4 A5:4 | A#5:8 A5:8 G5:4 F5:8 G5:8 A5:4 | G5:4 E5:4 F5:2"
    },
    "coda": {
        "arp": "F4:8 A4:8 C5:8 C5:8 A4:8 F4:8 A4:8 C5:8 | D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8",
        "bars": 2,
        "bass": "F3:4 C4:4 F3:4 C4:4 | D3:4 A3:4 D3:4 A3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[F4,A4,C5]:1 | [D4,F4,A4]:1",
        "lead": "F5:8 G5:8 A5:4 C6:4 A5:4 | G5:4 E5:4 F5:2"
    },
    "intro": {
        "arp": "F4:8 A4:8 C5:8 C5:8 A4:8 F4:8 A4:8 C5:8 | D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8",
        "bars": 2,
        "bass": "F3:4 C4:4 F3:4 C4:4 | D3:4 A3:4 D3:4 A3:4",
        "harmony": "[F4,A4,C5]:1 | [D4,F4,A4]:1",
        "lead": "F5:4 C5:4 F5:4 A5:4 | G5:8 A5:8 C6:4 G5:4 C5:4"
    },
    "verse": {
        "arp": "F4:8 A4:8 C5:8 C5:8 A4:8 F4:8 A4:8 C5:8 | D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | A#3:8 D4:8 F4:8 F4:8 D4:8 A#3:8 D4:8 F4:8 | C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8",
        "bars": 4,
        "bass": "F3:4 C4:4 F3:4 C4:4 | D3:4 A3:4 D3:4 A3:4 | A#2:4 F3:4 A#2:4 F3:4 | C3:4 G3:4 C3:4 G3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[F4,A4,C5]:1 | [D4,F4,A4]:1 | [A#3,D4,F4]:1 | [C4,E4,G4]:1",
        "lead": "F5:8 C5:8 D5:4 F5:4 A5:4 | G5:8 A5:8 C6:4 A5:4 G5:4 | F5:8 C5:8 D5:4 F5:8 G5:8 A5:4 | G5:4 E5:4 C5:4 -:4"
    }
}
arrangement = [
    "intro",
    "verse",
    "chorus",
    "verse",
    {"section":"bridge","repeat":2},
    {"section":"chorus","repeat":2},
    "coda"
]

@Music/beyond_storm
type = synth
tempo = 156
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"brass","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8",
        "bars": 2,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1",
        "lead": "Bb4:8 C5:8 D5:4 F5:4 A5:4 | G5:8 F5:8 E5:4 C5:4 A4:4"
    },
    "chorus": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8 | G3:8 Bb3:8 D4:8 D4:8 Bb3:8 G3:8 Bb3:8 D4:8 | A3:8 C4:8 E4:8 E4:8 C4:8 A3:8 C4:8 E4:8",
        "bars": 4,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4 | G2:4 D3:4 G2:4 D3:4 | A2:4 E3:4 A2:4 E3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1 | [G3,Bb3,D4]:1 | [A3,C4,E4]:1",
        "lead": "A5:2 F5:8 E5:8 D5:4 | Bb5:4 A5:8 F5:8 E5:4 F5:4 | G5:8 F5:8 E5:4 D5:8 E5:8 F5:4 | E5:4 C5:4 D5:2"
    },
    "coda": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8",
        "bars": 2,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1",
        "lead": "D5:8 E5:8 F5:4 A5:4 F5:4 | E5:4 C5:4 D5:2"
    },
    "intro": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8",
        "bars": 2,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1",
        "lead": "D5:4 A4:4 D5:4 F5:4 | E5:8 F5:8 A5:4 E5:4 A4:4"
    },
    "verse": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8 | G3:8 Bb3:8 D4:8 D4:8 Bb3:8 G3:8 Bb3:8 D4:8 | A3:8 C4:8 E4:8 E4:8 C4:8 A3:8 C4:8 E4:8",
        "bars": 4,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4 | G2:4 D3:4 G2:4 D3:4 | A2:4 E3:4 A2:4 E3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1 | [G3,Bb3,D4]:1 | [A3,C4,E4]:1",
        "lead": "D5:8 A4:8 Bb4:4 D5:4 F5:4 | E5:8 F5:8 A5:4 F5:4 E5:4 | D5:8 A4:8 Bb4:4 D5:8 E5:8 F5:4 | E5:4 C5:4 A4:4 -:4"
    }
}
arrangement = [
    "intro",
    "verse",
    "chorus",
    "verse",
    {"section":"bridge","repeat":2},
    {"section":"chorus","repeat":2},
    "coda"
]

@Sound/beyond_jump
wave = triangle
sequence = D4:30ms, A4:40ms, D5:70ms
volume = 0.1

@Sound/beyond_seed
wave = sine
sequence = A5:45ms, D6:85ms
volume = 0.15

@Sound/beyond_hurt
wave = triangle
sequence = D4:70ms, A3:80ms, D3:100ms
volume = 0.13

@Sound/beyond_beacon
wave = sine
sequence = D5:70ms, F#5:70ms, A5:120ms
volume = 0.13

@Sound/beyond_stomp
wave = square
sequence = D3:40ms, A3:60ms, D4:70ms
volume = 0.08

@Sound/beyond_warning
wave = triangle
sequence = D3:80ms, D3:80ms, A3:100ms
volume = 0.1

@Sound/beyond_clear
wave = triangle
sequence = D5:80ms, F#5:80ms, A5:80ms, D6:250ms
volume = 0.17

@Sound/beyond_flutter
wave = sine
sequence = A4:40ms, E5:50ms, A5:70ms
volume = 0.09

@Music/beyond_kiln_boss
type = synth
tempo = 164
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"brass","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8",
        "bars": 2,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1",
        "lead": "G#4:8 A#4:8 C5:4 D#5:4 G5:4 | F5:8 D#5:8 D5:4 A#4:4 G4:4"
    },
    "chorus": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8 | F3:8 G#3:8 C4:8 C4:8 G#3:8 F3:8 G#3:8 C4:8 | G3:8 A#3:8 D4:8 D4:8 A#3:8 G3:8 A#3:8 D4:8",
        "bars": 4,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4 | F2:4 C3:4 F2:4 C3:4 | G2:4 D3:4 G2:4 D3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1 | [F3,G#3,C4]:1 | [G3,A#3,D4]:1",
        "lead": "G5:2 D#5:8 D5:8 C5:4 | G#5:4 G5:8 D#5:8 D5:4 D#5:4 | F5:8 D#5:8 D5:4 C5:8 D5:8 D#5:4 | D5:4 A#4:4 C5:2"
    },
    "coda": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8",
        "bars": 2,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1",
        "lead": "C5:8 D5:8 D#5:4 G5:4 D#5:4 | D5:4 A#4:4 C5:2"
    },
    "intro": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8",
        "bars": 2,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1",
        "lead": "C5:4 G4:4 C5:4 D#5:4 | D5:8 D#5:8 G5:4 D5:4 G4:4"
    },
    "verse": {
        "arp": "C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8 | G#3:8 C4:8 D#4:8 D#4:8 C4:8 G#3:8 C4:8 D#4:8 | F3:8 G#3:8 C4:8 C4:8 G#3:8 F3:8 G#3:8 C4:8 | G3:8 A#3:8 D4:8 D4:8 A#3:8 G3:8 A#3:8 D4:8",
        "bars": 4,
        "bass": "C3:4 G3:4 C3:4 G3:4 | G#2:4 D#3:4 G#2:4 D#3:4 | F2:4 C3:4 F2:4 C3:4 | G2:4 D3:4 G2:4 D3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[C4,D#4,G4]:1 | [G#3,C4,D#4]:1 | [F3,G#3,C4]:1 | [G3,A#3,D4]:1",
        "lead": "C5:8 G4:8 G#4:4 C5:4 D#5:4 | D5:8 D#5:8 G5:4 D#5:4 D5:4 | C5:8 G4:8 G#4:4 C5:8 D5:8 D#5:4 | D5:4 A#4:4 G4:4 -:4"
    }
}
arrangement = [
    "intro",
    {"section":"verse","repeat":2},
    "chorus",
    "bridge",
    {"section":"chorus","repeat":2}
]


@Music/beyond_storm_boss
type = synth
tempo = 172
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"brass","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8",
        "bars": 2,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1",
        "lead": "Bb4:8 C5:8 D5:4 F5:4 A5:4 | G5:8 F5:8 E5:4 C5:4 A4:4"
    },
    "chorus": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8 | G3:8 Bb3:8 D4:8 D4:8 Bb3:8 G3:8 Bb3:8 D4:8 | A3:8 C4:8 E4:8 E4:8 C4:8 A3:8 C4:8 E4:8",
        "bars": 4,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4 | G2:4 D3:4 G2:4 D3:4 | A2:4 E3:4 A2:4 E3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1 | [G3,Bb3,D4]:1 | [A3,C4,E4]:1",
        "lead": "A5:2 F5:8 E5:8 D5:4 | Bb5:4 A5:8 F5:8 E5:4 F5:4 | G5:8 F5:8 E5:4 D5:8 E5:8 F5:4 | E5:4 C5:4 D5:2"
    },
    "coda": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8",
        "bars": 2,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1",
        "lead": "D5:8 E5:8 F5:4 A5:4 F5:4 | E5:4 C5:4 D5:2"
    },
    "intro": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8",
        "bars": 2,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1",
        "lead": "D5:4 A4:4 D5:4 F5:4 | E5:8 F5:8 A5:4 E5:4 A4:4"
    },
    "verse": {
        "arp": "D4:8 F4:8 A4:8 A4:8 F4:8 D4:8 F4:8 A4:8 | Bb3:8 D4:8 F4:8 F4:8 D4:8 Bb3:8 D4:8 F4:8 | G3:8 Bb3:8 D4:8 D4:8 Bb3:8 G3:8 Bb3:8 D4:8 | A3:8 C4:8 E4:8 E4:8 C4:8 A3:8 C4:8 E4:8",
        "bars": 4,
        "bass": "D3:4 A3:4 D3:4 A3:4 | Bb2:4 F3:4 Bb2:4 F3:4 | G2:4 D3:4 G2:4 D3:4 | A2:4 E3:4 A2:4 E3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[D4,F4,A4]:1 | [Bb3,D4,F4]:1 | [G3,Bb3,D4]:1 | [A3,C4,E4]:1",
        "lead": "D5:8 A4:8 Bb4:4 D5:4 F5:4 | E5:8 F5:8 A5:4 F5:4 E5:4 | D5:8 A4:8 Bb4:4 D5:8 E5:8 F5:4 | E5:4 C5:4 A4:4 -:4"
    }
}
arrangement = [
    "intro",
    {"section":"verse","repeat":2},
    "chorus",
    "bridge",
    {"section":"chorus","repeat":2}
]


# Expanded campaign / CANOPY
@Music/beyond_canopy
type = synth
tempo = 124
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"pluck","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8",
        "bars": 2,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1",
        "lead": "E5:8 F#5:8 G5:4 B5:4 D6:4 | C6:8 B5:8 A5:4 F#5:4 D5:4"
    },
    "chorus": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8 | C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8 | D4:8 F#4:8 A4:8 A4:8 F#4:8 D4:8 F#4:8 A4:8",
        "bars": 4,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4 | C3:4 G3:4 C3:4 G3:4 | D3:4 A3:4 D3:4 A3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1 | [C4,E4,G4]:1 | [D4,F#4,A4]:1",
        "lead": "D6:2 B5:8 A5:8 G5:4 | E6:4 D6:8 B5:8 A5:4 B5:4 | C6:8 B5:8 A5:4 G5:8 A5:8 B5:4 | A5:4 F#5:4 G5:2"
    },
    "coda": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8",
        "bars": 2,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1",
        "lead": "G5:8 A5:8 B5:4 D6:4 B5:4 | A5:4 F#5:4 G5:2"
    },
    "intro": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8",
        "bars": 2,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1",
        "lead": "G5:4 D5:4 G5:4 B5:4 | A5:8 B5:8 D6:4 A5:4 D5:4"
    },
    "verse": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8 | C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8 | D4:8 F#4:8 A4:8 A4:8 F#4:8 D4:8 F#4:8 A4:8",
        "bars": 4,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4 | C3:4 G3:4 C3:4 G3:4 | D3:4 A3:4 D3:4 A3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1 | [C4,E4,G4]:1 | [D4,F#4,A4]:1",
        "lead": "G5:8 D5:8 E5:4 G5:4 B5:4 | A5:8 B5:8 D6:4 B5:4 A5:4 | G5:8 D5:8 E5:4 G5:8 A5:8 B5:4 | A5:4 F#5:4 D5:4 -:4"
    }
}
arrangement = [
    "intro",
    "verse",
    "chorus",
    "verse",
    {"section":"bridge","repeat":2},
    {"section":"chorus","repeat":2},
    "coda"
]


# Expanded campaign / AURORA
@Music/beyond_aurora
type = synth
tempo = 108
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"bell","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8",
        "bars": 2,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1",
        "lead": "E5:8 F#5:8 G5:4 B5:4 D6:4 | C6:8 B5:8 A5:4 F#5:4 D5:4"
    },
    "chorus": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8 | C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8 | D4:8 F#4:8 A4:8 A4:8 F#4:8 D4:8 F#4:8 A4:8",
        "bars": 4,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4 | C3:4 G3:4 C3:4 G3:4 | D3:4 A3:4 D3:4 A3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1 | [C4,E4,G4]:1 | [D4,F#4,A4]:1",
        "lead": "D6:2 B5:8 A5:8 G5:4 | E6:4 D6:8 B5:8 A5:4 B5:4 | C6:8 B5:8 A5:4 G5:8 A5:8 B5:4 | A5:4 F#5:4 G5:2"
    },
    "coda": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8",
        "bars": 2,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1",
        "lead": "G5:8 A5:8 B5:4 D6:4 B5:4 | A5:4 F#5:4 G5:2"
    },
    "intro": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8",
        "bars": 2,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1",
        "lead": "G5:4 D5:4 G5:4 B5:4 | A5:8 B5:8 D6:4 A5:4 D5:4"
    },
    "verse": {
        "arp": "G4:8 B4:8 D5:8 D5:8 B4:8 G4:8 B4:8 D5:8 | E4:8 G4:8 B4:8 B4:8 G4:8 E4:8 G4:8 B4:8 | C4:8 E4:8 G4:8 G4:8 E4:8 C4:8 E4:8 G4:8 | D4:8 F#4:8 A4:8 A4:8 F#4:8 D4:8 F#4:8 A4:8",
        "bars": 4,
        "bass": "G3:4 D4:4 G3:4 D4:4 | E3:4 B3:4 E3:4 B3:4 | C3:4 G3:4 C3:4 G3:4 | D3:4 A3:4 D3:4 A3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[G4,B4,D5]:1 | [E4,G4,B4]:1 | [C4,E4,G4]:1 | [D4,F#4,A4]:1",
        "lead": "G5:8 D5:8 E5:4 G5:4 B5:4 | A5:8 B5:8 D6:4 B5:4 A5:4 | G5:8 D5:8 E5:4 G5:8 A5:8 B5:4 | A5:4 F#5:4 D5:4 -:4"
    }
}
arrangement = [
    "intro",
    "verse",
    "chorus",
    "verse",
    {"section":"bridge","repeat":2},
    {"section":"chorus","repeat":2},
    "coda"
]


# Expanded campaign / EMBERGLASS
@Music/beyond_emberglass
type = synth
tempo = 142
time_signature = 4/4
loop = true
volume = 0.11
instruments = {"lead":"brass","harmony":"strings","arp":"pluck","bass":"triangle","drums":"drums"}
sections = {
    "bridge": {
        "arp": "F4:8 G#4:8 C5:8 C5:8 G#4:8 F4:8 G#4:8 C5:8 | C#4:8 F4:8 G#4:8 G#4:8 F4:8 C#4:8 F4:8 G#4:8",
        "bars": 2,
        "bass": "F3:4 C4:4 F3:4 C4:4 | C#3:4 G#3:4 C#3:4 G#3:4",
        "harmony": "[F4,G#4,C5]:1 | [C#4,F4,G#4]:1",
        "lead": "C#5:8 D#5:8 F5:4 G#5:4 C6:4 | A#5:8 G#5:8 G5:4 D#5:4 C5:4"
    },
    "chorus": {
        "arp": "F4:8 G#4:8 C5:8 C5:8 G#4:8 F4:8 G#4:8 C5:8 | C#4:8 F4:8 G#4:8 G#4:8 F4:8 C#4:8 F4:8 G#4:8 | A#3:8 C#4:8 F4:8 F4:8 C#4:8 A#3:8 C#4:8 F4:8 | C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8",
        "bars": 4,
        "bass": "F3:4 C4:4 F3:4 C4:4 | C#3:4 G#3:4 C#3:4 G#3:4 | A#2:4 F3:4 A#2:4 F3:4 | C3:4 G3:4 C3:4 G3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[F4,G#4,C5]:1 | [C#4,F4,G#4]:1 | [A#3,C#4,F4]:1 | [C4,D#4,G4]:1",
        "lead": "C6:2 G#5:8 G5:8 F5:4 | C#6:4 C6:8 G#5:8 G5:4 G#5:4 | A#5:8 G#5:8 G5:4 F5:8 G5:8 G#5:4 | G5:4 D#5:4 F5:2"
    },
    "coda": {
        "arp": "F4:8 G#4:8 C5:8 C5:8 G#4:8 F4:8 G#4:8 C5:8 | C#4:8 F4:8 G#4:8 G#4:8 F4:8 C#4:8 F4:8 G#4:8",
        "bars": 2,
        "bass": "F3:4 C4:4 F3:4 C4:4 | C#3:4 G#3:4 C#3:4 G#3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[F4,G#4,C5]:1 | [C#4,F4,G#4]:1",
        "lead": "F5:8 G5:8 G#5:4 C6:4 G#5:4 | G5:4 D#5:4 F5:2"
    },
    "intro": {
        "arp": "F4:8 G#4:8 C5:8 C5:8 G#4:8 F4:8 G#4:8 C5:8 | C#4:8 F4:8 G#4:8 G#4:8 F4:8 C#4:8 F4:8 G#4:8",
        "bars": 2,
        "bass": "F3:4 C4:4 F3:4 C4:4 | C#3:4 G#3:4 C#3:4 G#3:4",
        "harmony": "[F4,G#4,C5]:1 | [C#4,F4,G#4]:1",
        "lead": "F5:4 C5:4 F5:4 G#5:4 | G5:8 G#5:8 C6:4 G5:4 C5:4"
    },
    "verse": {
        "arp": "F4:8 G#4:8 C5:8 C5:8 G#4:8 F4:8 G#4:8 C5:8 | C#4:8 F4:8 G#4:8 G#4:8 F4:8 C#4:8 F4:8 G#4:8 | A#3:8 C#4:8 F4:8 F4:8 C#4:8 A#3:8 C#4:8 F4:8 | C4:8 D#4:8 G4:8 G4:8 D#4:8 C4:8 D#4:8 G4:8",
        "bars": 4,
        "bass": "F3:4 C4:4 F3:4 C4:4 | C#3:4 G#3:4 C#3:4 G#3:4 | A#2:4 F3:4 A#2:4 F3:4 | C3:4 G3:4 C3:4 G3:4",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4",
        "harmony": "[F4,G#4,C5]:1 | [C#4,F4,G#4]:1 | [A#3,C#4,F4]:1 | [C4,D#4,G4]:1",
        "lead": "F5:8 C5:8 C#5:4 F5:4 G#5:4 | G5:8 G#5:8 C6:4 G#5:4 G5:4 | F5:8 C5:8 C#5:4 F5:8 G5:8 G#5:4 | G5:4 D#5:4 C5:4 -:4"
    }
}
arrangement = [
    "intro",
    "verse",
    "chorus",
    "verse",
    {"section":"bridge","repeat":2},
    {"section":"chorus","repeat":2},
    "coda"
]
ux.rune
@Logic/beyond
action refresh_ui:
    touch_ready = phase == "playing"
    map_hidden = phase != "map"
    result_hidden = phase != "result" && phase != "failed"
    enter_locked = phase == "map" && selected >= saga.unlocked
    node_one_locked = false
    node_two_locked = saga.unlocked < 2
    node_three_locked = saga.unlocked < 3
    node_four_locked = saga.unlocked < 4
    node_one_selected = selected == 0
    node_two_selected = selected == 1
    node_three_selected = selected == 2
    node_four_selected = selected == 3
    node_seven_locked = saga.unlocked < 7
    node_seven_selected = selected == 6
    node_six_locked = saga.unlocked < 6
    node_six_selected = selected == 5
    node_five_locked = saga.unlocked < 5
    node_five_selected = selected == 4
    stage_name = stages[selected].name
    stage_subtitle = stages[selected].subtitle
    selected_status = selected >= saga.unlocked
        ? "LOCKED / restore the previous lantern"
        : (saga.cleared[selected] ? "LANTERN RESTORED / best " + saga.best[selected] + " seeds": "NEW DESTINATION / awaiting your light")
    restored = 0
    for lit in saga.cleared:
        if lit:
            restored += 1
    progress_label = restored + " / 7 LANTERNS RESTORED"
    seed_label = collected + " / " + seeds.length + " AMBER SEEDS"
    primary_label = phase == "failed" ? "Try destination again / Enter" : "Return to atlas / Enter"
    ui = {
        "style": "floating",
        "noticeIcon": "beyond/hud/lantern",
        "meters": [
            {
                "label": "NIX",
                "icon": "beyond/hud/heart",
                "emptyIcon": "beyond/hud/heart_empty",
                "display": "pips",
                "value": hearts,
                "max": 4,
                "color": 16740754
            },
            {
                "label": "AMBER SEEDS",
                "icon": "beyond/hud/seed",
                "value": collected,
                "max": max(1, seeds.length),
                "color": 16766068
            },
            {
                "label": "SQUISHED",
                "icon": "beyond/hud/bug",
                "value": squished,
                "max": max(1, enemies.length),
                "color": 5495748
            }
        ],
        "objective": boss_active ? (boss_phase == "rest" ? "CORE OPEN - JUMP ON THE BOSS!": (selected == 1 ? "DODGE THE CHARGE / WAIT FOR BLUE CORE": "JUMP THE RED WAVE / WAIT FOR THE CROWN")): "FOLLOW THE SEEDS / REKINDLE THE LANTERN",
        "detail": stage_name,
        "prompt": "SPACE JUMP / HOLD TO GLIDE / Q E CAMERA",
        "notice": notice_ticks > 0 ? notice: "",
        "panel": null
    }
    if boss_active:
        ui.meters = [
            {
                "label": "NIX",
                "icon": "beyond/hud/heart",
                "emptyIcon": "beyond/hud/heart_empty",
                "display": "pips",
                "value": hearts,
                "max": 4,
                "color": 16740754
            },
            {
                "label": "AMBER SEEDS",
                "icon": "beyond/hud/seed",
                "value": collected,
                "max": max(1, seeds.length),
                "color": 16766068
            },
            {
                "icon": "beyond/hud/boss",
                "display": "bar",
                "label": selected == 1 ? "KILNBACK": "REGENT",
                "value": boss_hp,
                "max": boss_max,
                "color": 16414311
            }
        ]
        ui.detail = selected == 1
            ? "KILNBACK / THE WALKING FURNACE"
            : "THE TEMPEST REGENT / KEEPER OF DAWN"
    if phase == "playing" && !boss_active:
        ui.detail = stage_name
    if phase == "map":
        ui = {
            "style": "floating",
            "noticeIcon": "beyond/hud/lantern",
            "meters": [
                {
                    "label": "SKY LANTERNS",
                    "icon": "beyond/hud/lantern",
                    "value": restored,
                    "max": 7,
                    "color": 16766068
                }
            ],
            "objective": stage_name,
            "detail": "SKYBOUND II / " + progress_label,
            "prompt": enter_locked ? "RESTORE THE PREVIOUS LANTERN TO UNLOCK": "1-7 CHOOSE / ENTER EXPLORE",
            "notice": "",
            "panel": null
        }
    if phase == "result" || phase == "failed":
        ui.heading = phase == "result" ? "LANTERN RESTORED" : "LIGHT THE WAY"
        ui.prompt = phase == "result"
            ? "ENTER TO RETURN TO THE ATLAS"
            : "ENTER TO TRY THIS DESTINATION AGAIN"
        ui.panel = {
            "title": phase == "result" ? "NICELY FLOWN, NIX": "YOUR JOURNEY CONTINUES",
            "body": phase == "result" ? seed_label + ".|" + progress_label + ".": "Restored lanterns are saved.|Retry this destination or return to the atlas.",
            "choices": [],
            "selected": 0,
            "footer": "B / RETURN TO ATLAS"
        }
    pause_ui = {
        "style": "floating",
        "noticeIcon": "beyond/hud/lantern",
        "heading": "WINGS AT REST",
        "meters": ui.meters,
        "objective": ui.objective,
        "detail": stage_name,
        "prompt": "P RESUME / B ATLAS",
        "notice": "",
        "panel": {
            "title": "ADVENTURE PAUSED",
            "body": "Space jumps. Hold it while falling to glide.|Q / E orbit. R centers the camera.|Stomp creatures. Hold jump for a higher bounce.|Leaving resets this attempt; lanterns stay saved.",
            "choices": [],
            "selected": 0,
            "footer": "YOUR LIGHT WILL WAIT"
        }
    }

Un petit papillon. Un ciel immense.

WASD ou flèches pour avancer ; Espace pour sauter et planer ; Shift pour courir ; Q / E pour tourner la caméra ; R pour la recentrer. Écrasez les créatures par-dessus et maintenez le saut pour rebondir plus haut.

Rallumez sept lanternes, trouvez les détours à graines et battez Kilnback et le Régent de la Tempête. La progression et les records de graines sont sauvegardés dans ce navigateur.

Clavier, manette et commandes tactiles sont pris en charge. P met en pause ; B revient à l’atlas depuis la pause. Échap quitte le plein écran. Activez le son pour écouter la musique originale.

Explorez le code Rune

Niveaux, créatures, modèles, icônes de l’interface, commandes et musique sont écrits en Rune. Parcourez les fichiers ou compilez et testez le jeu avec Vectrune 0.3.5 ou une version ultérieure.

git clone https://github.com/davethomas11/rune.git
cd rune
vectrune examples/games/skybound_2/skybound_2.rune -o html > skybound-2.html
vectrune test examples/games/skybound_2 --type logic
vectrune fmt examples/games/skybound_2 --line-width 100
Site entièrement créé avec Rune-Web